diff --git a/docs/ci-verification.md b/docs/ci-verification.md index 63ba3e9aa8..52b62d0481 100644 --- a/docs/ci-verification.md +++ b/docs/ci-verification.md @@ -1,8 +1,25 @@ # CI verification -## Current selected-family replay: #6030 +## Current selected-family replay: #7000 with #7001 The [selected record](../certificates/selected-result.json) binds conditional +κ = 0.00363005817 to the [application review](research/pr-intake-evidence/pr7000-application/PROOF-REVIEW.md), +[validation receipts](research/pr-intake-evidence/pr7000-application/VALIDATION.json), +and [explicit source closure](../certificates/frontier7000-source.json). +`make frontier7000-verify` follows that exact-source selected replay. The review +reuses eleven authenticated preceding executions and records seven fresh serial +application, scalar and complete native-catalogue executions. The earlier +monolithic timeout is retained separately and is not completed coverage. +Consult the receipts for exact commands, source heads and limits. + +The five inherited framework assumptions remain. No complete uniform word, +literal multiplier execution, independent human proof or formal-kernel proof +is asserted. Routine research submissions do not need to rerun this +selected-family replay. The sections below preserve historical checkpoints. + +## Historical selected-family replay: #6030 + +The [historical checkpoint](../certificates/checkpoints/frontier6030.json) binds conditional κ = 0.003125804 to the [proof review](research/pr-intake-evidence/pr6030-audit/PROOF-REVIEW.md), [validation receipts](research/pr-intake-evidence/pr6030-audit/VALIDATION.json), and [explicit source closure](../certificates/frontier6030-source.json). diff --git a/research/historical-selected-replay-gap/README.md b/research/historical-selected-replay-gap/README.md index 55d8cc3b49..36d9a873ca 100644 --- a/research/historical-selected-replay-gap/README.md +++ b/research/historical-selected-replay-gap/README.md @@ -69,7 +69,11 @@ python3 -B scripts/research_package.py --package research/historical-selected-re The direct command prints `PASS_HISTORICAL_SELECTED_REPLAY_GAP`. A registered replay prints `PASS_REGISTERED_RESEARCH_PACKAGE`. Both require Git history -containing the two inspected commits. +containing the two inspected commits and the source and manifest objects at +`2485805a6d47f36ea83ddde6327d453ac82d44dc`. The verifier uses a temporary +sparse checkout of that commit, checks the declared source digests there, and +uses its planner and manifest inventory. The recorded rejections and selection +therefore remain reproducible after later changes to the live Makefile or CI guide. ## Open next questions diff --git a/research/historical-selected-replay-gap/SOURCES.json b/research/historical-selected-replay-gap/SOURCES.json index c1010eec95..62bb8b3950 100644 --- a/research/historical-selected-replay-gap/SOURCES.json +++ b/research/historical-selected-replay-gap/SOURCES.json @@ -4,13 +4,13 @@ "files": [ { "path": "Makefile", - "usage": "input", + "usage": "provenance", "git_blob": "0d683a06b9e7ee162496108ce9a7c5d2ee94fccf", "sha256": "4f2d4f2dcd15139ec82658a975f85ed300897385f85799218539f4c8d60567da" }, { "path": "certificates/partial-swap-network.json", - "usage": "input", + "usage": "provenance", "git_blob": "eccafa830c16170c36faf93045ddf1f638f7bcd4", "sha256": "4c0b9d37e1034b2076e30a70f8e514416298c462d9ee98bc87fe6556b14df786" }, @@ -22,7 +22,7 @@ }, { "path": "docs/ci-verification.md", - "usage": "input", + "usage": "provenance", "git_blob": "63ba3e9aa8bdc5e942b56e34244b92b16f854085", "sha256": "c7d3027e9ad8bcbff68f07aa9576b30fb2f3c76c44d876d40c7fdbf4a3e2228a" }, @@ -34,163 +34,163 @@ }, { "path": "research/clifford-state-performance/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "6f98a0061a5104dfab82c9e806f819b41811f684", "sha256": "396d0f08df24952248140d5c65c51b8c902ef1c580892ff7ea182890530f67ee" }, { "path": "research/community-batch1047-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "5e0f92af463ec12c5e1dcc3effd44081a88af647", "sha256": "07a9daeaf2bda308a92e9a4684f13d5fc766c7772d74801fceb7f4599fdab226" }, { "path": "research/community-batch1099-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "9e13266bf85e627f1b7dc225e9530ea69fd2c7f0", "sha256": "421e1211fb1897c45621dc6801c276e53f2e6f335583c9c9049e535f87c0a3b1" }, { "path": "research/community-batch932-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "cc4d03eb59b9ab3f952735f7e88ff18c2d15d7af", "sha256": "184629cac91a5cfaca50330a88596008b824221433867dcf8117539c913c284a" }, { "path": "research/community-batch970-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "8b9f4111badf7de5d97684799560b55110e9da79", "sha256": "23188ed920e38a54006cb883e181585620821c63bf7e8b5e05d32719417cc37e" }, { "path": "research/community-frontier741-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "a5300d4e7a5381a3f443fc54c768ca6f0f236d68", "sha256": "3c820fb30e1b4d9bcfc6a7ab524375e5b2abd66b940af2c509146104f0bcd79c" }, { "path": "research/community-frontier890-audit/CONTENT-COVERAGE.json", - "usage": "input", + "usage": "provenance", "git_blob": "d7ff6d777b01d69b6ce84caf25d3b7e4a4d2f211", "sha256": "6b185a9902652f893f3ebd8ada92d2f11b6de6533a9a4d11718a8a4496101128" }, { "path": "research/community-hyperplane599-audit/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "546f37d326d10a99910ae8f908e71ef768524d98", "sha256": "65099d764bfcc39bda5e4d9966783611b094c3522dbdd1435cd498d657a8ef8e" }, { "path": "research/community-k492-audit/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "e538481e4cb16ed936d3195f2dfb5b5a9ca0a76b", "sha256": "2c0f4fa5bc150d05658af2e7c54c4d2c337dd52b7efd3d69530ae73bcbdf452a" }, { "path": "research/community-reconciliation92-audit/MANIFEST.json", - "usage": "input", + "usage": "provenance", "git_blob": "2a2e93685173d5f13cbb5abe740f5d90352e0228", "sha256": "5f501f3c118131e7d069f30ad77186eb2ad6961f9680a0ef105f4514ed41808a" }, { "path": "research/partial-swap-digest/baseline.py", - "usage": "input", + "usage": "provenance", "git_blob": "a2f0190704db83bd8ef48e46e723c49b925804fe", "sha256": "81e9af92cdf38243a540cdcff2062778e449467848d444da37a9553c12ca4c34" }, { "path": "research/r420-two-sided-basis/SOURCES.json", - "usage": "input", + "usage": "provenance", "git_blob": "5d718e11e62f4bcadecf1e02d6b61f87dbe190b0", "sha256": "d9810b0d139c5a1211fd2c1f0d142187cc1fca30026e1e7bc4f9ecfacf1596d1" }, { "path": "research/skip-clones/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "8d1bb3b9c8189e35e5d8bfdfa632d7473e8be0d5", "sha256": "0b68e63e35a97ce6b0cdb6e291b88ebaa8f2dd4afb70b2498f10ee89428258dc" }, { "path": "research/split-skip/SOURCE.json", - "usage": "input", + "usage": "provenance", "git_blob": "2ab610b6ea2edd2865fda793ef2168b0c76afb4f", "sha256": "7c2b4646a3ecfef6f881da5c43e4bd0fa9a4d1b00548b8ab458d897e16735134" }, { "path": "scripts/historical-ci-inputs/Makefile", - "usage": "input", + "usage": "provenance", "git_blob": "aff68409021c9d401a6f8013b9dfd7dbcc30f2a8", "sha256": "ea8830dd79da493e2d75baf753d733ff7efbcf2b4794afe41fae0ac8f3055646" }, { "path": "scripts/historical-ci-inputs/ledger-batch932-run_isolated_tests.py", - "usage": "input", + "usage": "provenance", "git_blob": "65db599ab0b1dea0312c4ca048e0bd0f44c3736f", "sha256": "96ea543e6c707424afe247e77bd86c82152f90fc76a0773c4232145da5cdf8d1" }, { "path": "scripts/historical-ci-inputs/ledger-batch932-test_isolated_test_runner.py", - "usage": "input", + "usage": "provenance", "git_blob": "34820a8f24678f918f4d0e7a35380d8013fc3495", "sha256": "628391b6abfbc8674ceec1751867a4392f2cc0b5b66886243e139af86cf355ac" }, { "path": "scripts/historical-ci-inputs/ledger-batch970-verify_selected_result.py", - "usage": "input", + "usage": "provenance", "git_blob": "c755b76e0d44ba4917aa94440ebe54daefce5b2a", "sha256": "d7fd929726b326aeeaf0a3996475adec88eee9aac09ae0bebeeaa0bc1fc8f199" }, { "path": "scripts/historical-ci-inputs/ledger-frontier741-ci-verification.md", - "usage": "input", + "usage": "provenance", "git_blob": "7f3c012504187917a728b9fe87043f0fc8cd006a", "sha256": "a854022e0e1d5d4db4d60e586be3ea56005013ef14a1fc06d02bc06e8529c4b0" }, { "path": "scripts/historical-ci-inputs/partial-swap-context.json", - "usage": "input", + "usage": "provenance", "git_blob": "ad65114886bf34a4fd27e79f3be502389e689faa", "sha256": "833a9642f33aeab2ffea17ec9c6b82e0a953f90192b2c82e10bef21538dccba9" }, { "path": "scripts/historical-ci-inputs/partial-swap-network.json", - "usage": "input", + "usage": "provenance", "git_blob": "52075f2463f60af5e16571347f24274fce73a1ea", "sha256": "f3c4be597b2f2136da4ae2cc80c7454f63c90aa01f84e5b8131cee4dd55de815" }, { "path": "scripts/partial_swap/shared.py", - "usage": "input", + "usage": "provenance", "git_blob": "44a0e454c70f9c4b98e258b8443612e6a119904b", "sha256": "5a0646a50b9f3e8ea55168620a78e8853b0ab810517cefc8cfb8696aedee278a" }, { "path": "scripts/replay_historical_check.py", - "usage": "input", + "usage": "provenance", "git_blob": "1e92fff2782970ef71378f594f2350d245a4db26", "sha256": "5467619c78183d3adc82b0cb55af28e5c1a01fca2b0588677816244b53e2bafd" }, { "path": "scripts/research_package.py", - "usage": "input", + "usage": "provenance", "git_blob": "091b4c8f58bac9a9580d76025b887dc5c873d05f", "sha256": "e1256016e7f51827d04fa2179255989f639ae1d97afaa9c16265f85a0c6abd70" }, { "path": "scripts/run_isolated_tests.py", - "usage": "input", + "usage": "provenance", "git_blob": "a96ab35b315ce492e7fbbfd6c5ae211aa066b541", "sha256": "49eb56dd0fc0d8d8ffdb209970a7adf2176223580646f575d5c22e59543b381c" }, { "path": "scripts/verify_selected_result.py", - "usage": "input", + "usage": "provenance", "git_blob": "6882a4700e410dec569b51ae2eaf1a19cc019195", "sha256": "d6b305eac5b9bdb8172c469ad30a1655a60fa0aceac8b1bf610e1b73f51babd8" }, { "path": "tests/test_isolated_test_runner.py", - "usage": "input", + "usage": "provenance", "git_blob": "343b24abf6719b81805eba5a84c74e57634c8288", "sha256": "3a5470d0b139828b90e19bf9583ddeafcd69f8e34f2824664eb3a2958a52e34d" } diff --git a/research/historical-selected-replay-gap/VERIFY.json b/research/historical-selected-replay-gap/VERIFY.json index 98553e72ed..ab7efa3471 100644 --- a/research/historical-selected-replay-gap/VERIFY.json +++ b/research/historical-selected-replay-gap/VERIFY.json @@ -4,36 +4,7 @@ "python": "3.12", "requirements": [], "inputs": [ - "Makefile", - "certificates/partial-swap-network.json", - "docs/ci-verification.md", - "research/clifford-state-performance/SOURCE.json", - "research/community-batch1047-audit/CONTENT-COVERAGE.json", - "research/community-batch1099-audit/CONTENT-COVERAGE.json", - "research/community-batch932-audit/CONTENT-COVERAGE.json", - "research/community-batch970-audit/CONTENT-COVERAGE.json", - "research/community-frontier741-audit/CONTENT-COVERAGE.json", - "research/community-frontier890-audit/CONTENT-COVERAGE.json", - "research/community-hyperplane599-audit/SOURCE.json", - "research/community-k492-audit/SOURCE.json", - "research/community-reconciliation92-audit/MANIFEST.json", - "research/partial-swap-digest/baseline.py", - "research/r420-two-sided-basis/SOURCES.json", - "research/skip-clones/SOURCE.json", - "research/split-skip/SOURCE.json", - "scripts/historical-ci-inputs/Makefile", - "scripts/historical-ci-inputs/ledger-batch932-run_isolated_tests.py", - "scripts/historical-ci-inputs/ledger-batch932-test_isolated_test_runner.py", - "scripts/historical-ci-inputs/ledger-batch970-verify_selected_result.py", - "scripts/historical-ci-inputs/ledger-frontier741-ci-verification.md", - "scripts/historical-ci-inputs/partial-swap-context.json", - "scripts/historical-ci-inputs/partial-swap-network.json", - "scripts/partial_swap/shared.py", - "scripts/replay_historical_check.py", - "scripts/research_package.py", - "scripts/run_isolated_tests.py", - "scripts/verify_selected_result.py", - "tests/test_isolated_test_runner.py" + "scripts/research_package.py" ], "commands": [ { diff --git a/research/historical-selected-replay-gap/verify.py b/research/historical-selected-replay-gap/verify.py index 83b995941a..9d266c5a4e 100644 --- a/research/historical-selected-replay-gap/verify.py +++ b/research/historical-selected-replay-gap/verify.py @@ -6,8 +6,10 @@ """ import hashlib import importlib.util +import json import subprocess import sys +import tempfile from pathlib import Path ROOT = Path(__file__).resolve().parents[2] @@ -61,31 +63,47 @@ def require(ok, message): raise SystemExit(message) -def load_checker(): - path = ROOT / "scripts/replay_historical_check.py" - spec = importlib.util.spec_from_file_location("historical_selected_replay_gap_checker", path) +def load_module(path): + spec = importlib.util.spec_from_file_location(path.stem, path) module = importlib.util.module_from_spec(spec) spec.loader.exec_module(module) return module +def checkout_snapshot(snapshot, sources, runner, env): + paths = [runner.canonical_relative_path(row["path"]) for row in sources["files"]] + git = ["git", "-c", "maintenance.auto=false", "-c", "gc.auto=0", + "-c", "core.autocrlf=false"] + subprocess.run([*git, "clone", "--quiet", "--shared", "--no-tags", "--no-checkout", + "--", str(ROOT), str(snapshot)], cwd=ROOT, env=env, check=True) + subprocess.run([*git, "update-ref", "--no-deref", "HEAD", INSPECTED], + cwd=snapshot, env=env, check=True) + # The pinned planner reads omitted manifests from the sparse HEAD/index. + patterns = "".join(f"/{path.as_posix()}\n" for path in paths) + subprocess.run([*git, "sparse-checkout", "set", "--no-cone", "--stdin"], + cwd=snapshot, env=env, input=patterns.encode("utf-8"), check=True) + subprocess.run([*git, "read-tree", "-mu", "HEAD"], cwd=snapshot, env=env, check=True) + for path, row in zip(paths, sources["files"], strict=True): + require(hashlib.sha256((snapshot / path).read_bytes()).hexdigest() == row["sha256"], + "historical checkout source digest changed: " + path.as_posix()) + + def entries(checker): for name, config in checker.CONFIG.items(): for entry in [config, *config.get("additional_inputs", [])]: yield name, entry -def reject(checker, entry): +def reject(root, checker, entry): try: - checker.authenticated_input(ROOT, entry) + checker.authenticated_input(root, entry) except ValueError as exc: return str(exc) raise SystemExit("historical input was admitted: " + entry["path"]) -def main(): - require(not sys.flags.optimize, "assertions must stay enabled") - checker = load_checker() +def check_snapshot(root, env): + checker = load_module(root / "scripts/replay_historical_check.py") selected = [entry for name, entry in entries(checker) if name == "tooling-ledger" and entry["path"] == SELECTED_PATH] require(len(selected) == 1, "selected-result checker overlay is not unique") @@ -94,7 +112,7 @@ def main(): require(entry["accepted_live_sha256"] == [SELECTED_ACCEPTED], "accepted selected-checker successors changed") frozen = (checker.INPUTS / entry["input"]).read_bytes() - live = (ROOT / SELECTED_PATH).read_bytes() + live = (root / SELECTED_PATH).read_bytes() require(hashlib.sha256(frozen).hexdigest() == SELECTED_PIN, "frozen selected checker bytes changed") require(hashlib.sha256(live).hexdigest() == SELECTED_LIVE, "live selected checker digest changed") require(SELECTED_LIVE not in (SELECTED_PIN, SELECTED_ACCEPTED), "live checker was already admitted") @@ -102,7 +120,7 @@ def main(): # live successor, not a broken comparison. require(SELECTED_PIN in (SELECTED_PIN, *entry["accepted_live_sha256"]), "pin membership control failed") - require(reject(checker, entry) == REJECTIONS[SELECTED_PATH][1], + require(reject(root, checker, entry) == REJECTIONS[SELECTED_PATH][1], "selected checker rejection text changed") counts = {path: 0 for path in REJECTIONS} @@ -110,7 +128,7 @@ def main(): for _name, item in entries(checker): if item["path"] not in REJECTIONS: continue - message = reject(checker, item) + message = reject(root, checker, item) counts[item["path"]] += 1 messages.setdefault(item["path"], message) for path, (count, message) in REJECTIONS.items(): @@ -118,20 +136,31 @@ def main(): require(messages[path] == message, "rejection text changed for " + path) require(sum(counts.values()) == 19, "rejection total changed") ci = [item for _name, item in entries(checker) if item["path"] == CI_PATH] - require(len(ci) == 1 and hashlib.sha256((ROOT / CI_PATH).read_bytes()).hexdigest() == CI_LIVE, + require(len(ci) == 1 and hashlib.sha256((root / CI_PATH).read_bytes()).hexdigest() == CI_LIVE, "selected CI note digest changed") diff = subprocess.check_output( - ["git", "diff", "--name-only", PARENT, INSPECTED], cwd=ROOT, text=True) + ["git", "diff", "--name-only", PARENT, INSPECTED], cwd=root, env=env, text=True) changed = sorted(name for name in diff.splitlines() if name) require(changed == CHANGED, "inspected commit diff changed") - sys.path.insert(0, str(ROOT / "scripts")) - from research_package import plan_details - details = plan_details(ROOT, set(changed)) + planner = load_module(root / "scripts/research_package.py") + details = planner.plan_details(root, set(changed)) require([row["package"] for row in details] == PLAN_PACKAGES, "helper plan selection changed") matched = {name for row in details for names in row["causes"].values() for name in names} require(sorted(set(changed) - matched) == UNMATCHED, "unmatched plan paths changed") - require(plan_details(ROOT, set()) == [], "empty change set selected a package") + require(planner.plan_details(root, set()) == [], "empty change set selected a package") + + +def main(): + require(not sys.flags.optimize, "assertions must stay enabled") + sources = json.loads(Path(__file__).with_name("SOURCES.json").read_bytes()) + require(sources["base_commit"] == INSPECTED, "historical checkout base changed") + runner = load_module(ROOT / "scripts/research_package.py") + env = runner.git_source_env() + with tempfile.TemporaryDirectory(prefix="historical-selected-replay-") as temporary: + snapshot = Path(temporary) / "snapshot" + checkout_snapshot(snapshot, sources, runner, env) + check_snapshot(snapshot, env) print("PASS_HISTORICAL_SELECTED_REPLAY_GAP") print("selected_checker_live=" + SELECTED_LIVE) print("rejections=19 distinct_paths=7 plan_packages=9") diff --git a/research/p104-paired-move-bypass-screens/ANCESTRY-RESULTS.json.gz b/research/p104-paired-move-bypass-screens/ANCESTRY-RESULTS.json.gz new file mode 100644 index 0000000000..c1243161fb Binary files /dev/null and b/research/p104-paired-move-bypass-screens/ANCESTRY-RESULTS.json.gz differ diff --git a/research/p104-paired-move-bypass-screens/BINARY-CANDIDATE.json.gz b/research/p104-paired-move-bypass-screens/BINARY-CANDIDATE.json.gz new file mode 100644 index 0000000000..16f8cafb1c Binary files /dev/null and b/research/p104-paired-move-bypass-screens/BINARY-CANDIDATE.json.gz differ diff --git a/research/p104-paired-move-bypass-screens/LICENSE b/research/p104-paired-move-bypass-screens/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/research/p104-paired-move-bypass-screens/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/research/p104-paired-move-bypass-screens/NOTICE.md b/research/p104-paired-move-bypass-screens/NOTICE.md new file mode 100644 index 0000000000..ed0f1670f7 --- /dev/null +++ b/research/p104-paired-move-bypass-screens/NOTICE.md @@ -0,0 +1,16 @@ +# Source and attribution + +The unchanged `BINARY-CANDIDATE.json.gz` is Ali Romman's 111-port source from +[#8027](https://github.com/CrocSwap/integer-mult-bounds/pull/8027) at +`fb9b6a7b0d27da1cf98430893a3016bf811e2aa4`, path +`research/p104-live-relative-gain/BINARY-CANDIDATE.json.gz`. Its Git blob is +`16f8cafb1c4d139a99a62e46eb40c118e6176c34`, and its compressed SHA-256 is +`74e93daf2b7acf794ffb51f92f03f51556f68126d41ee13a8969bddb4cbe6326`. +The exact retained [PARENT-NOTICE](PARENT-NOTICE) and [LICENSE](LICENSE) are +from the same source. Clear1nsight supplied the predecessor mixed-rank +compiler; the notice retains the earlier contributors' credits. + +The new scripts, results and documentation were prepared for Clear1nsight +with substantial OpenAI Codex assistance, and are offered under Apache-2.0. +The finite checks are author-side computations; independent scientific review +has not been claimed. diff --git a/research/p104-paired-move-bypass-screens/PARENT-NOTICE b/research/p104-paired-move-bypass-screens/PARENT-NOTICE new file mode 100644 index 0000000000..fe51894a1a --- /dev/null +++ b/research/p104-paired-move-bypass-screens/PARENT-NOTICE @@ -0,0 +1,31 @@ +Mixed paid cutoffs for the P104 ordinary BIT supplier + +Prepared for Clear1nsight with substantial OpenAI Codex assistance. The +new schedule, directed comparison, occurrence controls, and documentation +are offered under Apache-2.0. + +verify.py adapts the Apache-2.0 verifiers from Dugongue's PR #7831 +(2d1fb9c878ae1e292cb918de40fa8e4f7fa7f75e) and Rohan Arun's PR #7835 +(43007c979859fa84ccc3a3509ccacc9620d181fa). Rohan Arun submitted #7835 +through the original X request at +https://x.com/RohanArun/status/2123655584797143516. The source manifest +retains the published #7835 NOTICE. + +Retained predecessor NOTICE from the grade-14 package follows. + +Iterated returns on the P104 ordinary suppliers + +Clear1nsight prepared the successor construction, explicit witnesses and verification +with substantial OpenAI Codex assistance, including independent computational checks. +The new material is offered under Apache-2.0. + +The exact starting words and the rational and binary replay interfaces are from +Clear1nsight's PR #7781. The paid and productive scalar operations, the 48-call +complex schedule, the punctured binary supplier and the common outer application +come from Ali Romman's PR #7776. The two paid projections build on the local +quotient and terminal repair in #7774 and #7781. The binary paired caller and +finite compiler use work by DreamingOfClouds, Jerry Chen (CubeJerry), zxv and the +contributors cited in their retained sources. SYLforge, Rohan Arun, Cinna Davis, +Douglas Colkitt and other predecessors contributed the caller, physical and +analytic framework. The source-fetch helper is adapted from #7774. The immutable +source manifest identifies the public inputs and their notices. diff --git a/research/p104-paired-move-bypass-screens/PROOF.md b/research/p104-paired-move-bypass-screens/PROOF.md new file mode 100644 index 0000000000..ff75e10e4d --- /dev/null +++ b/research/p104-paired-move-bypass-screens/PROOF.md @@ -0,0 +1,105 @@ +# Proof of the bounded screens + +All spaces below are over the field with two elements. At every clock a chart +retains every normalized field it has owned. This retention is a free grant; it +is not an assertion that an actual physical realization gets unlimited memory +or scrubbing for free. The 630 public inputs are independent. The native +instruction replay verifies every final field against the intended `(x,y+x)` +pair map and all helper identities before constructing the screens. + +## Path census and chart admission + +Read every actual MOVE, its ordered endpoints and its zero-based instruction +clock. Select all pairs `a → h` at `i` and `h → b` at `j > i` such that both +native rank differences are one and the absolute difference of endpoint ranks +is two. The rank condition makes the two steps monotone. Check both orders of +the projector product on each original pair and each replacement pair: +`P_small P_large = P_large P_small = P_small`. The rational matrices and their +denominators are exact and denominators are units at three. There are 1,557 +pairs, involving 859 distinct original endpoint pairs and 333 distinct direct +endpoint pairs. Thus every enumerated replacement has a valid rank-two nested +chart difference. This check does not emit its physical MOVE implementation. + +## Receipt-preserving overgrant + +Fix one selected pair. Delete its first MOVE, put the direct contact at the old +second clock, and retain every other contact and its clock. At any surviving +contact, let `S` and `R` be the complete sender and receiver historical spans, +and let `f` be the original received field. All sender fields are eligible +payloads and all receiver fields may be XORed freely. We require the receiver +to reconstruct `f` immediately. If `f` is not already in `R`, this is possible +only when `f ∈ S + R`; the stock after such a single scalar is necessarily +`R + span(f)`, since the scalar must equal `f + r` for some `r ∈ R`. If `f` +already lies in `R`, we give the receiver the full `S`, dominating any +one-scalar choice. Induction over the contacts proves that this recurrence +contains every causal history satisfying the stated receipt contract. If the +recurrence cannot reproduce a receipt or final output, no such history exists. +It does not exclude a valid program with different receipt values. + +The computation reports the first failed receipt or terminal result for every +pair. Totals are 616, 619 and 18 first failures respectively before, at and +after the replaced contact, and 304 terminal failures. Neither the unmodified +run nor any tested alternative actually triggers the full-sender overgrant: +every retained native receipt is independent of the receiver's stock. The +result file records all 1,557 cases. Its separate chronological control +restarts from public inputs for each case, using the same linear-basis routines +as the incremental implementation. + +## Final targets under fixed exterior source envelopes + +For a bypass whose hinge `h` contains a required final public field `t`, take +the union `U` of the initial fields at `h` and the native preclock sender spans +of every retained contact entering `h`. Grant all these spans in their entirety +at the hinge, irrespective of their individual one-scalar capacities and +without preserving any native receipt. The direct edge ends away from `h`. +If every actual remaining sender is constrained to information in its native +preclock span, all information arriving at `h` lies in `U`. If `t` is not in +`U`, a vector `q` can be chosen with `q·u = 0` for every `u ∈ U` and `q·t = 1`. +The two independent public inputs differing by `q` produce the same granted +source data but different required target values. This rules out arbitrary +local recoding even with unlimited ingress capacity. + +All **854** enumerated paths with a final output at their hinge admit such a +witness, across **111** hinges and **304** distinct hinge-and-ingress cuts. The +verifier checks each `q` against every basis vector of every granted source span +and checks that adjoining the removed native receipt makes `t` representable. +These 304 positive controls show that each tested cut detects the deleted native +direction in the stated +frozen-exterior model. They do not show that changed exterior producers obey +that model or that a different contact schedule cannot work. For the specific +`344 → 525 → 1` example with ingress clock 8243 and egress clock 10093, +`q = e111 + e589`, while the missing target is `e0 + e111`. A second parser +replays the primitive word and rebuilds every stock using low-pivot elimination, +then checks all 854 certificates, all restored-row controls and a deliberately +corrupted target probe for each case. + +## Unlimited-bandwidth input ancestry + +Remove all receipt requirements. Give every surviving contact **every input +coordinate** in the sender's causal history. At each clock, take the union of +input labels at the receiver and sender. By induction this is an upper bound +on which original inputs any causal computation at that chart can depend on, +regardless of how its scalar payloads are encoded. If a target output requires +an input absent from this overgrant, that output cannot be correct for all +independent public inputs. Only fixed endpoints, order and public charts are +assumed; finite payload capacity and native receipt values are not assumed. + +The ten exclusions are: + +| Hinge | Deleted ingress clock | Replaced egress clock | New direct edge | Missing input | Failed output at final chart | +|---:|---:|---:|---|---:|---| +| 12 | 208 | 215 | 0 → 196 | 10 | 121 at 535 | +| 12 | 211 | 215 | 0 → 196 | 10 | 121 at 535 | +| 44 | 792 | 799 | 0 → 206 | 42 | 153 at 567 | +| 44 | 795 | 799 | 0 → 206 | 42 | 153 at 567 | +| 82 | 1575 | 1589 | 0 → 171 | 80 | 191 at 605 | +| 82 | 1578 | 1589 | 0 → 171 | 80 | 191 at 605 | +| 83 | 1593 | 1604 | 0 → 257 | 81 | 192 at 606 | +| 83 | 1596 | 1604 | 0 → 257 | 81 | 192 at 606 | +| 515 | 8312 | 10063 | 351 → 1 | 80 | 191 at 605 | +| 515 | 8312 | 10066 | 351 → 1 | 80 | 191 at 605 | + +The other 1,547 pairs pass only this overgenerous necessary test. In +particular, no positive supplier or optimization follows. Changing clocks, +adding/replacing other contacts or changing the port bindings is outside the +screen. The full sequential and incremental ancestry runs agree on every case. diff --git a/research/p104-paired-move-bypass-screens/README.md b/research/p104-paired-move-bypass-screens/README.md new file mode 100644 index 0000000000..d82d394f10 --- /dev/null +++ b/research/p104-paired-move-bypass-screens/README.md @@ -0,0 +1,163 @@ +# Fixed-clock paired-move screens for the 111-port BIT source + +This package is a scoped negative result, not a new supplier or a κ improvement. It +screens a particular replacement of two paid rank-one MOVEs by one rank-two +MOVE, and gives a stronger ancestry obstruction for 10 of those replacements. + +## Source and case set + +The literal 39,600-instruction, 630-public-owner source is Ali Romman's +[#8027 BIT candidate at `fb9b6a7b0d27da1cf98430893a3016bf811e2aa4`](https://github.com/aliromman/integer-mult-bounds/blob/fb9b6a7b0d27da1cf98430893a3016bf811e2aa4/research/p104-live-relative-gain/BINARY-CANDIDATE.json.gz). +Its compressed SHA-256 is +`74e93daf2b7acf794ffb51f92f03f51556f68126d41ee13a8969bddb4cbe6326`. +This is the same byte-pinned graph named by the #8035 standalone supplier. +The byte-identical source gzip is included as `BINARY-CANDIDATE.json.gz`; the +original source, contributors, notices and license retain their existing attribution. + +For each chronological pair of paid MOVEs `a → h` at clock `i` and `h → b` +at clock `j > i`, retain only paths with ranks 1 and 1 and a monotone rank-2 +direct difference. Delete the first MOVE and replace the second at clock `j` +by `a → b`. All other MOVE incidences and times, all starting and final owner +charts and all public outputs remain fixed. There are **1,557** such paths. +The replacement retains rank two; the verifier checks exact two-sided projector +nesting for its endpoints, as well as for the original contacts. Clocks are +zero-based native instruction indices, not wall-clock timestamps. This case +set does not include timing changes, other endpoint exchanges, extra moves, +nonmonotone paths or changes to the initial/final port charts. + +## Original-receipt preservation + +Each surviving native receipt, including the receipt at the replaced egress, +must reproduce its original normalized linear form at its destination by the +same clock. Senders and receivers are granted complete local historical stock, +free storage and arbitrary linear XOR recoding. If the original receipt is +already in receiver stock, the checker grants that receiver the **entire** +sender stock for that one contact. If not, it tests whether the receipt lies +in the sum of source and receiver spaces, then adds it to receiver stock. +Every possible one-scalar encoding satisfies this optimistic recurrence. + +All 1,557 cases fail this contract. The first obstruction is a missing receipt +before the replacement in **616**, at the replacement in **619**, and after +the replacement in **18**; **304** instead reach a missing terminal output. +The raw receipt was independent of the receiver's previous stock at every +original event. No redundant-receipt full-stock overgrant actually triggered +in these tests. The result says nothing definitive about a word that changes +original intermediate receipt demands and later jointly decodes its targets. + +`RECEIPT-RESULTS.json.gz` names each ingress, egress, first failed receipt and +terminal mismatch. Its full chronological control replays every case from +initial stock; it shares the same binary basis routines and primitive parser +with the faster incremental algorithm, so it is a control of the incremental +bookkeeping rather than an independent implementation. + +## Final-target cuts with native exterior histories + +Of the 1,557 paths, **854** have a public output at their hinge, covering all +111 such hinge charts. For each, delete the first ingress and grant the hinge +the *entire original preclock sender span* at every remaining ingress. Also +grant its initial fields and free local history. The required final target is +outside this union in all **854** cases. They share **304** distinct +hinge-and-deleted-ingress cuts. Each cut has a binary dual witness; adding the +deleted native ingress form to the overgranted union restores the target. All +304 distinct positive controls are checked. This +scope allows changed intermediate receipts and unlimited capacity on the other +incoming contacts; it assumes those senders do not gain information outside +their original native preclock spans. Altered exterior producers are open. + +For example, remove `344 → 525` at clock 8243 and send its original receipt +directly `344 → 1` at clock 10093. Output 111 at chart 525 must equal +`e0 + e111`. The difference `e111 + e589` annihilates the full original +source history for every remaining ingress to 525, while flipping both the +missing ingress value and the required target. Thus no local recoding from +those frozen source spans can repair that output. `TARGET-CUT-RESULTS.json.gz` +contains a checked witness and positive control for each case. + +## The nine two-ingress, three-exit charts + +These are the nine hinges with exactly two incoming and three outgoing MOVEs. +Only monotone two-hop paths appear in the table; the third exit may reverse +rank and therefore fall outside this particular direct rank-two exchange. +All listed cases fail original-receipt preservation. The last column is the +number already ruled out even with unlimited information per remaining MOVE. + +| Hinge | Eligible ingress clocks | Eligible egress clocks | Paths | First receipt failure clocks | Ancestry exclusions | +|---:|---|---|---:|---|---:| +| 510 | 8105, 8113 | 10036, 10039 | 4 | 10036, 11017 | 0 | +| 511 | 8277, 8288 | 10042, 10045 | 4 | 10042, 11030 | 0 | +| 512 | 8129, 8162 | 10048, 10051 | 4 | 10048, 11043 | 0 | +| 513 | 8761, 8772 | 10054, 10057 | 4 | 10054, 11056 | 0 | +| 514 | 9157, 18859 | 10060, 18862 | 3 | 10060, 18866 | 0 | +| 515 | 8312, 8327 | 10063, 10066 | 4 | 10063, 11069 | 2 | +| 516 | 8375, 8423 | 10069, 10072 | 4 | 10069, 11082 | 0 | +| 517 | 8722, 8753 | 10075, 10078 | 4 | 10075, 10997 | 0 | +| 518 | 9052, 9067 | 10081, 10084 | 4 | 10081, 11095 | 0 | + +Only three chart-514 paths are chronological: its second ingress at 18859 +cannot be paired with the earlier egress at 10060. The 35 listed cases +therefore comprise 33 ancestry-only passes and two ancestry exclusions. + +## Unrestricted causal ancestry + +In the second screen, dispense with all original-receipt requirements and +grant every remaining MOVE the entire source history of independent public +inputs. This strictly exceeds the single-field bandwidth. If an input label +still cannot reach a required output's chart, no causal recoding of that fixed +contact schedule can make the output depend on it. **10** of the 1,557 paths +fail this test; **1,547** pass this necessary test only, with no construction +or one-scalar sufficiency implied. `ANCESTRY-RESULTS.json.gz` includes every case +and every missing input/output pair. + +For example, remove `351 → 515` at clock 8312 and replace either `515 → 1` +at clock 10063 or at clock 10066 by `351 → 1`. The first input of main pair +80 begins at chart 82 and the required output 191, whose form is `e191 + e80`, +ends at chart 605. The original contact schedule contains the causal path + +`82 → 171 → 280 → 351 → 515 → 350 → 71 → 0 → 86 → 605`. + +With either named bypass, `e80` cannot reach chart 515 or chart 605, even when +every remaining contact carries every reachable input at zero extra cost. +The other two chart-515 bypasses, and every case at the other eight hinges, +pass ancestry only; no conclusion about their feasibility follows. + +## Replay + +Requires Python 3.12 and only the standard library. From this directory run: + +```sh +python3.12 -I -B verify.py +``` + +The verifier checks the compressed and expanded source hashes and Git blob, +the retained notices and results, all 630 public images, 2,803 MOVEs, +3,433 dirty private clears, 859 distinct original endpoint pairs and 333 +direct endpoint pairs. It runs all 1,557 cases in each screen and compares +every incremental result with a full chronological replay from scratch. It +also checks the 304 distinct target-cut witnesses and positive controls that +cover 854 paths. A separate parser with low-pivot elimination replays the +source and independently checks every target-cut certificate, its restored-row +control and a corrupted witness. +Recomputed results are written to temporary files and compared to the retained +compressed receipts; the checked-in receipts are not rewritten. A corrupted +source-byte control must be rejected. The three receipt files contain every case. +The check does not establish a physical replacement program, priced outer +supplier, finite application or new κ result. + +## Open next questions + +- Can a surviving fixed-clock bypass deliver the actual public outputs using + changed intermediate receipts? Start with one of the 1,547 ancestry + survivors and solve the source-side and joint terminal coding conditions; + ancestry alone grants unlimited bandwidth and does not supply the code. +- Can a multi-edge exchange produce a complete physical saving? Begin with a + literal changed word, then verify all 630 images, nesting, dirty-bank + accounting, the 36-call invoice and the finite caller. A moment saving + without those checks is not a qualified supplier. + +## Credit + +Ali Romman supplied the literal #8027 binary graph. Clear1nsight supplied the +predecessor mixed-rank compiler. The exact retained upstream attribution is in +[PARENT-NOTICE](PARENT-NOTICE); the source is Apache-2.0, with its unchanged +[license](LICENSE). This screening and its verification were prepared for +Clear1nsight with substantial OpenAI Codex assistance. Independent scientific +review remains open. diff --git a/research/p104-paired-move-bypass-screens/RECEIPT-RESULTS.json.gz b/research/p104-paired-move-bypass-screens/RECEIPT-RESULTS.json.gz new file mode 100644 index 0000000000..f029ea3d01 Binary files /dev/null and b/research/p104-paired-move-bypass-screens/RECEIPT-RESULTS.json.gz differ diff --git a/research/p104-paired-move-bypass-screens/SOURCES.json b/research/p104-paired-move-bypass-screens/SOURCES.json new file mode 100644 index 0000000000..5929588f3c --- /dev/null +++ b/research/p104-paired-move-bypass-screens/SOURCES.json @@ -0,0 +1,30 @@ +{ + "schema_version": 1, + "base_commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "files": [ + { + "path": "docs/research/agent-task-catalog.json", + "usage": "provenance", + "git_blob": "3404fbdd5e7529a0674eef26114b5071e4586cec", + "sha256": "ead6cdc9d0af6d58e8a49744d8ec8c7c15e13d2ba93c276c434bcf9b51b93a81" + } + ], + "vendored_graph": { + "repository": "https://github.com/aliromman/integer-mult-bounds", + "pull_request": 8027, + "head": "fb9b6a7b0d27da1cf98430893a3016bf811e2aa4", + "path": "research/p104-live-relative-gain/BINARY-CANDIDATE.json.gz", + "local_path": "BINARY-CANDIDATE.json.gz", + "git_blob": "16f8cafb1c4d139a99a62e46eb40c118e6176c34", + "sha256": "74e93daf2b7acf794ffb51f92f03f51556f68126d41ee13a8969bddb4cbe6326", + "expanded_sha256": "b096d6df2a0c4688296b13ab0cfd50fec1c7dec732819c624ddd7a745a144b69", + "provenance_note": "Unchanged external PR bytes; the byte and blob equality is checked locally. Complete source Git history is not contained in this package." + }, + "retained_files_sha256": { + "LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "PARENT-NOTICE": "b213998c8dae6d88e4a1f0fd17c81dd78c31ef35bc9460fa16ca692326f1a02b", + "RECEIPT-RESULTS.json.gz": "8b659a7b2cbadc445c6148045c45aeeaaa7fdbd4638d99b0f0df258e851b6fd3", + "ANCESTRY-RESULTS.json.gz": "b367c89386c12ab9c22079597c6239d1180580f5d464a25f51c393094c5dca38", + "TARGET-CUT-RESULTS.json.gz": "49e288d61c91981a697d5b4ed9ca1163b7884a1c1acec75f1863f56be9724de4" + } +} diff --git a/research/p104-paired-move-bypass-screens/TARGET-CUT-RESULTS.json.gz b/research/p104-paired-move-bypass-screens/TARGET-CUT-RESULTS.json.gz new file mode 100644 index 0000000000..cf2bda2810 Binary files /dev/null and b/research/p104-paired-move-bypass-screens/TARGET-CUT-RESULTS.json.gz differ diff --git a/research/p104-paired-move-bypass-screens/TASK.json b/research/p104-paired-move-bypass-screens/TASK.json new file mode 100644 index 0000000000..e986f85371 --- /dev/null +++ b/research/p104-paired-move-bypass-screens/TASK.json @@ -0,0 +1,87 @@ +{ + "schema_version": 1, + "task_id": "selected-stock-envelope", + "priority_revision": 8, + "base_commit": "e54523517d0f03e58352e647c403a5af3e525a57", + "original_card": { + "id": "selected-stock-envelope", + "question": "What explicit uniform stock envelope does the actual selected stopped producer supply at one bootstrap stage?", + "starting_points": [ + "research/selected-bootstrap-stock-audit/README.md", + "research/bootstrap-cutoff-time-space-split/README.md", + "certificates/selected-result.json", + "docs/research/community-efficient1000-review.md", + "research/stock-margin-chain/README.md" + ], + "methods": [ + "Derive a source-bound reserve recurrence at the actual selected atom widths, separating parent stock from completed inner borrowing.", + "Find an exact missing implication or counterexample to a proposed selected-stage stock envelope." + ], + "acceptance_gate": "Bind every coefficient and depth factor to the selected producer and state the width domain. Compare a proved envelope with the sufficient cutoff guard; a large numerical headroom or a historical m=120 coefficient is not a selected m=73 proof.", + "first_step": { + "command": [ + "python3", + "-B", + "scripts/research_selected_baseline.py" + ], + "expected": "PASS_RESEARCH_BASELINE_BINDINGS_ONLY", + "inspect": "Resolve the current selected review, separate complex/ordinary BIT/admitted BIT/outer budgets, and compare the card against live handoffs before starting. Historical ceilings require exact source/model equivalence.", + "scope": "Source-binding orientation only; not a scientific replay or all-size proof. Materialize selected inputs if this checkout is sparse." + }, + "first_experiment": "Choose one actual selected producer/stage and derive its parent reserve and depth coefficient from source. Check whether newer handoffs already cover that exact obligation. Stop with the missing implementation lemma if it cannot be bounded; do not rerun #2972 cutoff/headroom arithmetic as a new contribution.", + "bottleneck_link": "This reduces a concrete inherited implementation obligation without confusing unchanged kappa arithmetic with a completed theorem.", + "allowed_variations": [ + "One stage or one explicit reserve/depth implication.", + "An independently checked same-domain proof repair, retaining all remaining assumptions." + ], + "scope_change_triggers": [ + "Importing the historical 57604 or 252 allowance without a selected-producer binding.", + "Calling a conditional fit lemma a full outer-proof adoption.", + "Replacing an actual selected stock coefficient with cutoff comparisons or a conditional fit inequality." + ], + "overlap_terms": [ + "selected stock", + "stock envelope", + "bootstrap cutoff", + "1956", + "1965", + "1990", + "2972", + "stock-margin-chain", + "actual_stock_coefficient" + ], + "existing_checks": [ + { + "scope": "Retained stock audit identifies missing actual selected-stage coefficients; later cutoff-chain arithmetic does not supply them.", + "evidence": "docs/research/research-family-status.md#revision-6-handoffs-source-archives-awaiting-independent-validation", + "remaining": "Derive one actual reserve/depth coefficient from the selected producer.", + "status": "reviewed", + "source_commit": "836b19bfa309ceafbc8ee32a15e8c4b10dde7e11", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + } + ] + }, + "scope_status": "changed", + "scope_change_reason": "The donor requested a narrowly scoped search for paid-move savings in the pinned 111-port P104 source, rather than a selected bootstrap stock envelope.", + "actual_scope": "Enumerate monotone two-hop rank-one MOVE bypasses; test causal original-receipt preservation; certify final targets under frozen exterior source envelopes; and identify input-output ancestry obstructions with unlimited remaining bandwidth.", + "bottleneck_link": "A legal direct rank-two move could reduce the paid strict moment versus two rank-one moves, but any such saving must preserve every public field in the actual caller.", + "stop_rule": "Verify the pinned literal graph, exact projector nesting, every candidate and full chronological controls; do not infer a supplier or gain from a relaxed necessary condition.", + "outcome": "negative-result", + "evidence": "README.md, PROOF.md, all three complete compressed result files and the registered replay.", + "author": "Clear1nsight", + "ai_assistance": "Substantial OpenAI Codex assistance in research, implementation, finite replay and documentation.", + "open_questions": [ + { + "question": "Can an ancestry-surviving bypass reproduce the full public operator with changed intermediate receipt values?", + "why_it_matters": "Such a word could reduce the paid moment but is outside the receipt-preservation screen.", + "first_step": "Choose a survivor and jointly solve its source payloads and all terminal decoders on the original contact clocks.", + "blocked_by": "The unlimited-bandwidth ancestry pass neither assigns scalar payloads nor proves the physical word." + }, + { + "question": "Can a multi-edge exchange yield a complete physical and caller-level saving?", + "why_it_matters": "A qualified source improvement must survive chart nesting, owner accounting and the actual 36-call invoice.", + "first_step": "Emit a literal changed source word and replay all 630 public images, charts, bank lifetimes and complete outer costs.", + "blocked_by": "No changed physical supplier is constructed here." + } + ] +} diff --git a/research/p104-paired-move-bypass-screens/VERIFY.json b/research/p104-paired-move-bypass-screens/VERIFY.json new file mode 100644 index 0000000000..39ff4eee29 --- /dev/null +++ b/research/p104-paired-move-bypass-screens/VERIFY.json @@ -0,0 +1,19 @@ +{ + "schema_version": 1, + "status": "ready", + "python": "3.12", + "requirements": [], + "inputs": [], + "commands": [ + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py" + ], + "timeout_seconds": 120, + "checks": "Authenticate the literal source and attribution; check all 630 outputs and projector nesting; reproduce all 1557 receipt and ancestry screens, 854 final-target dual cuts, full chronological replay and corruption/positive controls." + } + ] +} diff --git a/research/p104-paired-move-bypass-screens/ancestry_screen.py b/research/p104-paired-move-bypass-screens/ancestry_screen.py new file mode 100644 index 0000000000..ea0215d5b1 --- /dev/null +++ b/research/p104-paired-move-bypass-screens/ancestry_screen.py @@ -0,0 +1,75 @@ +"""Unlimited-capacity ancestry control for the screened two-hop bypasses. + +Each surviving MOVE grants every independently available public input at its +source to its destination. A target input missing at a final output chart +rules out every causal binary-linear coding for that fixed contact schedule. +Passing is only a necessary condition and supplies no actual one-scalar code. +""" +from argparse import ArgumentParser +from bisect import bisect_left +from collections import Counter,defaultdict +from pathlib import Path +import json +from native_model import SOURCE_SHA256,load,primitive,paths,record + +def initial(G): + S=defaultdict(int) + for i,c in enumerate(G['start']):S[c]|=1<>i&1]}) + return sorted(bad,key=lambda r:r['output']) + +def optimized(edges,final,history,path): + h,first,last=path;ie=edges[first];a=ie['a'];alt={h:ie['R']} + for j in range(first+1,len(edges)): + e=edges[j];special=j==last;sa=a if special else e['a'];tb=e['b'] + if not special and sa not in alt and tb not in alt:continue + S=alt[sa] if sa in alt else (at(history,sa,j) if special else e['S']);R=alt[tb] if tb in alt else e['R'];B=R|S + if B==e['Rafter']:alt.pop(tb,None) + else:alt[tb]=B + bad=[] + for c,bits in alt.items(): + for output,F in final[c]: + absent=F&~bits + if absent:bad.append({'output':output,'chart':c,'missing_inputs':[i for i in range(630) if absent>>i&1]}) + return sorted(bad,key=lambda r:r['output']) + +def naive(G,edges,final,path): + """Independent from-scratch chronological propagation, with no snapshots.""" + _,first,last=path;stock=initial(G);a=edges[first]['a'] + for j,e in enumerate(edges): + if j==first:continue + sa=a if j==last else e['a'];stock[e['b']]|=stock[sa] + return missing(stock,final) + +def main(): + p=ArgumentParser(description=__doc__);p.add_argument('source');p.add_argument('--control-all',action='store_true');p.add_argument('--output',default=str(Path(__file__).with_name('ANCESTRY-RESULTS.json')));args=p.parse_args() + G=load(args.source);edges,inn,out,final=primitive(G);cases=paths(G,edges,inn,out);history,stock=prepare(G,edges);assert not missing(stock,final) + rows=[];stats=Counter();hinges=defaultdict(Counter) + for path in cases: + bad=optimized(edges,final,history,path) + if args.control_all:assert bad==naive(G,edges,final,path),record(edges,path) + outcome='impossible' if bad else 'necessary_test_only' + stats[outcome]+=1;hinges[path[0]][outcome]+=1 + rows.append({**record(edges,path),'outcome':outcome,**({'missing':bad} if bad else {})}) + assert stats=={'impossible':10,'necessary_test_only':1547} + result={'source_sha256':SOURCE_SHA256,'cases':len(cases),'counts':dict(stats),'nine_hinges':{str(h):dict(hinges[h]) for h in range(510,519)},'controls':{'native_primitive_outputs':630,'baseline_all_targets_reachable':True,'all_candidate_full_chronological_replay':args.control_all},'results':rows} + Path(args.output).write_text(json.dumps(result,indent=2,sort_keys=True)+'\n') + print(json.dumps({k:v for k,v in result.items() if k!='results'},indent=2,sort_keys=True)) +if __name__=='__main__':main() diff --git a/research/p104-paired-move-bypass-screens/native_model.py b/research/p104-paired-move-bypass-screens/native_model.py new file mode 100644 index 0000000000..aa27745c44 --- /dev/null +++ b/research/p104-paired-move-bypass-screens/native_model.py @@ -0,0 +1,86 @@ +"""Pinned 111-port source parser and exact GF(2) primitive replay.""" +from collections import Counter,defaultdict +from hashlib import sha256 +from pathlib import Path +import gzip,json + +SOURCE_SHA256='74e93daf2b7acf794ffb51f92f03f51556f68126d41ee13a8969bddb4cbe6326' + +def load(path): + data=Path(path).read_bytes() + if sha256(data).hexdigest()!=SOURCE_SHA256: raise ValueError('Compressed source SHA-256 mismatch') + word=json.loads(gzip.decompress(data)) + assert word['schema']=='BIT-functional-GL-kernel-native/1' + assert (word['public'],len(word['frames']),len(word['program']),word['owned_fields'])==(630,636,39600,3433) + return word + +def insert(B,v): + while v: + p=v.bit_length()-1 + if p in B:v^=B[p] + else:B[p]=v;return True + return False + +def residue(B,v): + while v: + p=v.bit_length()-1 + w=B.get(p) + if w is None:return v + v^=w + return 0 + +def contains(B,v):return not residue(B,v) + +def primitive(word): + """Replay every instruction for all arbitrary public fields at once.""" + n=word['public']; frames=dict(enumerate(word['start']));values={i:1<=n and r not in frames + frames[r]=args[0];values[r]=0;tokens[r]=0 + elif op=='ADD': + q,c=args;assert r!=q and frames[r]==frames[q]==c + values[r]^=values[q];tokens[r]^=tokens[q] + elif op=='MOVE': + a,b=args;assert frames[r]==a and contains(stock[a],values[r]) + j=len(edges);incoming[b].append(j);outgoing[a].append(j) + edges.append({'clock':clock,'reg':r,'a':a,'b':b,'F':values[r],'dependencies':tokens[r]}) + insert(stock[b],values[r]);frames[r]=b;tokens[r]=1<<(n+j) + elif op=='SWAP': + q,=args;frames[r],frames[q]=frames[q],frames[r];values[r],values[q]=values[q],values[r];tokens[r],tokens[q]=tokens[q],tokens[r] + elif op=='CLEAR': + assert r>=n and frames.pop(r)==args[0];dirty+=bool(values.pop(r));del tokens[r] + else:raise ValueError(op) + assert frames==dict(enumerate(word['final'])) and len(edges)==2803 and dirty==3433 + assert len(values)==n + final=defaultdict(list) + for r in range(n): + want=(1<>i&1], + 'deleted_ingress_detected':True,'native_deleted_row_restores_target':True}) + cache[key]={'native_start_inputs':starts,'remaining_ingress_sources':sources, + 'granted_source_union_rank':len(B),'target_certificates':certificates} + cert=cache[key] + if cert['target_certificates']:counts['excluded_paths']+=1 + else:counts['survivor_paths']+=1 + rows.append({**record(edges,path),**cert}) + assert counts=={'paths_with_hinge_output':854,'excluded_paths':854} and len(hinges)==111 and len(cache)==304 + result={'source_sha256':SOURCE_SHA256,'counts':dict(counts),'public_output_hinges':len(hinges), + 'distinct_hinge_ingress_cuts':len(cache),'positive_deleted_row_controls':len(cache),'scope':'each surviving hinge ingress can convey its entire original native preclock source stock; fixed exterior stock envelopes and public endpoints', + 'results':rows} + Path(args.output).write_text(json.dumps(result,indent=2,sort_keys=True)+'\n') + print(json.dumps({k:v for k,v in result.items() if k!='results'},indent=2,sort_keys=True)) +if __name__=='__main__':main() diff --git a/research/p104-paired-move-bypass-screens/target_cut_audit.py b/research/p104-paired-move-bypass-screens/target_cut_audit.py new file mode 100644 index 0000000000..44d5cc1a46 --- /dev/null +++ b/research/p104-paired-move-bypass-screens/target_cut_audit.py @@ -0,0 +1,81 @@ +"""Independently replay target-cut certificates with low-pivot elimination.""" +from collections import defaultdict +from hashlib import sha256 +from pathlib import Path +import gzip,json + +HERE=Path(__file__).resolve().parent +SOURCE_SHA='74e93daf2b7acf794ffb51f92f03f51556f68126d41ee13a8969bddb4cbe6326' + +def add(B,value): + while value: + pivot=(value&-value).bit_length()-1 + if pivot in B:value^=B[pivot] + else:B[pivot]=value;return + +def member(B,value): + while value: + pivot=(value&-value).bit_length()-1 + if pivot not in B:return False + value^=B[pivot] + return True + +def bitcount(x):return x.bit_count()&1 + +def main(): + source=(HERE/'BINARY-CANDIDATE.json.gz').read_bytes();assert sha256(source).hexdigest()==SOURCE_SHA + word=json.loads(gzip.decompress(source));n=word['public'];assert n==630 + values={i:1<G['frames'][str(b)]['dim']:a,b=b,a + da,A=proj(a);db,B=proj(b);small=[[db*x for x in row] for row in A] + return matmul(A,B)==small and matmul(B,A)==small + original=set();direct=set() + for h,i,j in cases: + a=edges[i]['a'];b=edges[j]['b'];original.add((a,h));original.add((h,b));direct.add((a,b)) + for a,b in sorted(original):assert nested(a,b),(a,b) + for a,b in sorted(direct):assert nested(a,b),(a,b) + print(f'primitive replay: 630/630 public fields, 2,803 MOVEs, 3,433 dirty clears') + print(f'geometry: {len(original)} original endpoint pairs and {len(direct)} direct endpoint pairs nested, all 1,557 paths monotone') +if __name__=='__main__':main()