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-gaussian-fixed-carrier-installation/README.md b/research/p104-gaussian-fixed-carrier-installation/README.md new file mode 100644 index 0000000000..b9a5ef9ec5 --- /dev/null +++ b/research/p104-gaussian-fixed-carrier-installation/README.md @@ -0,0 +1,11 @@ +# Installation and weighted receiver replay + +This companion runs two verification modes of [the Gaussian construction](../p104-gaussian-fixed-carrier/README.md). Both modes use its exact installation and receiver code, signed price and pinned archive. The remaining six modes run in that package. Run both bounded packages to reproduce the complete result. + +```sh +python3.12 -IB scripts/research_package.py --package research/p104-gaussian-fixed-carrier-installation +``` + +## Open next questions + +Compare the observed Linux and local wall times for the same installation and weighted-receiver checks before reducing either mode's timeout. The scientific coverage is shared with the primary construction. diff --git a/research/p104-gaussian-fixed-carrier-installation/SOURCES.json b/research/p104-gaussian-fixed-carrier-installation/SOURCES.json new file mode 100644 index 0000000000..e7eefb9540 --- /dev/null +++ b/research/p104-gaussian-fixed-carrier-installation/SOURCES.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "base_commit": "0618e75a22cec54d1651394ef83d088551b7f026", + "files": [ + { + "path": "certificates/selected-result.json", + "usage": "provenance", + "git_blob": "75d77b328ea02ded535e7f23aee5b1e55d0bb1a8", + "sha256": "154c3d30455d778fd3343b6b4851f0fa4665f0f7625b0adb3675e2bafbbf6bf1" + }, + { + "path": "docs/research/agent-task-catalog.json", + "usage": "provenance", + "git_blob": "3404fbdd5e7529a0674eef26114b5071e4586cec", + "sha256": "ead6cdc9d0af6d58e8a49744d8ec8c7c15e13d2ba93c276c434bcf9b51b93a81" + } + ] +} diff --git a/research/p104-gaussian-fixed-carrier-installation/TASK.json b/research/p104-gaussian-fixed-carrier-installation/TASK.json new file mode 100644 index 0000000000..4091598039 --- /dev/null +++ b/research/p104-gaussian-fixed-carrier-installation/TASK.json @@ -0,0 +1,107 @@ +{ + "schema_version": 1, + "task_id": "scalar-to-moment", + "priority_revision": 8, + "base_commit": "0618e75a22cec54d1651394ef83d088551b7f026", + "original_card": { + "id": "scalar-to-moment", + "question": "Can a scalar/frame rewrite improve the complete signed moment through paid jobs, productive targets, or both?", + "starting_points": [ + "docs/research/current-priorities.md", + "docs/research/research-family-status.md", + "certificates/selected-result.json", + "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md", + "docs/research/recursive-invoice-preflight.md" + ], + "methods": [ + "Construct and independently check one source-bound instance of the stated first experiment.", + "Seek an exact counterexample or target-specific complete-budget obstruction to that same proposed change." + ], + "acceptance_gate": "Require a legal chronological rewrite and favorable complete signed target-minus-paid moment with all extra charges. Unchanged ADD counts or unchanged paid-call counts alone decide neither success nor failure. Compiler, native and outer admission remain separate obligations.", + "first_step": { + "command": [ + "python3", + "-B", + "scripts/research_selected_baseline.py" + ], + "expected": "PASS_RESEARCH_BASELINE_BINDINGS_ONLY", + "inspect": "Read revision 8, the selected review and live exact-source handoffs. Then follow this card's bounded first_experiment.", + "scope": "Source-bound orientation only, not a supplier replay or theorem proof." + }, + "first_experiment": "Construct one legal source-bound rewrite and compare complete before/after P and T. Charge restoration, source windows and owned helpers. A paid call need not disappear: a legal target split or rank redistribution may win. Stop if the signed moment is unchanged or the consumer repays the gain. Do not extend a scalar-only census on ADD counts.", + "bottleneck_link": "Judge the actual current supplier contract and complete signed target/paid bill; frozen-profile ceilings require an applicability proof.", + "allowed_variations": [ + "One exact source head, helper/cut region or quantified proposition and changed hypothesis; check live handoffs first. Different seeds are not different scopes." + ], + "scope_change_triggers": [ + "Changing source head, helper/cut domain, operation alphabet or caller boundary without recording the new scope.", + "Treating an archived proposal or local numerical pass as complete supplier admission." + ], + "overlap_terms": [ + "signed moment", + "target split", + "rank exchange", + "scalar rewrite" + ], + "existing_checks": [ + { + "scope": "PR #3998: consecutive A2 scalar contraction", + "evidence": "research/staged544-a2-graph-rewrite/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "389268a6b5e0373a3125d5c6fcd6995f4ea324f5", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4019: separated A2 sites with unchanged recursive histogram", + "evidence": "research/staged544-separated-a2/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "f408e09df300b575235f7f77f81948071397e16d", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4112: composition audit", + "evidence": "research/staged544-a2-composition-audit/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "205b7380656ba4b6316a8a493b1a3c679b8f7a0e", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4152: A1858 contraction audit", + "evidence": "research/staged544-a1858-contraction-audit/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "caaa14cde5962adc372fdca71f63d0f29e73c8b2", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "Selected PR5599: complete helper-subspace construction and independent caller replay; five framework assumptions remain.", + "evidence": "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md", + "remaining": "The next experiment must identify uncovered source-specific work. Successor archive intake does not transfer this admission.", + "status": "reviewed", + "source_commit": "09dd0965711ca7eeb169057a420abab1c9052137", + "selected_record_sha256": "2a0220e866417774606e0f991e41b9c1d26b1f43b97857238cf478dbc7d330b5" + } + ] + }, + "scope_status": "refined", + "actual_scope": "Replay the complete fixed installations and weighted receivers of the linked Gaussian candidate.", + "scope_change_reason": "The full registered suite is grouped into separate jobs so the installation and weighted receiver fit their bounded Linux replay limits.", + "bottleneck_link": "The Gaussian installed raw rate minus 39/(256 H) and the five stopping-gap units governs the complete extended profile.", + "budget_minutes": 60, + "stop_rule": "Run both the installation and receiver modes with their original assertions and signed controls.", + "outcome": "completed", + "evidence": "research/p104-gaussian-fixed-carrier/verify.py install and receiver with the same pinned construction and signed dependencies.", + "author": "Campaign contributor", + "ai_assistance": "OpenAI Codex assisted the binding inequality analysis, implementation and independent replay.", + "open_questions": [ + { + "question": "Can a charged Gaussian native operation be simplified to raise the literal moment crossing?", + "why_it_matters": "The unchanged 48-call word still limits the achievable Gaussian rate.", + "first_step": "Reconstruct the complete paid and productive grade ledger and select one literal paid operation with a strictly positive directed saving.", + "blocked_by": "A literal signed arbitrary-input rewrite and proof of restoration have yet to be supplied." + } + ] +} diff --git a/research/p104-gaussian-fixed-carrier-installation/VERIFY.json b/research/p104-gaussian-fixed-carrier-installation/VERIFY.json new file mode 100644 index 0000000000..6ad0b0e6fb --- /dev/null +++ b/research/p104-gaussian-fixed-carrier-installation/VERIFY.json @@ -0,0 +1,36 @@ +{ + "schema_version": 1, + "status": "ready", + "python": "3.12", + "requirements": [], + "inputs": [ + "research/p104-gaussian-fixed-carrier/PEER-SOURCE.json", + "research/p104-gaussian-fixed-carrier/RESULT.json", + "research/p104-gaussian-fixed-carrier/peer8052.tar.gz", + "research/p104-gaussian-fixed-carrier/verify.py" + ], + "commands": [ + { + "argv": [ + "{python}", + "-I", + "-B", + "research/p104-gaussian-fixed-carrier/verify.py", + "install" + ], + "timeout_seconds": 585, + "checks": "Generate and check all seven installations, receiver selections, binary chart/frame metadata, and fiscal scans." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "research/p104-gaussian-fixed-carrier/verify.py", + "receiver" + ], + "timeout_seconds": 600, + "checks": "Check public direct and quotient weighted five-exchange shuttles, nonzero eight-rank classes, and exact direct checks." + } + ] +} diff --git a/research/p104-gaussian-fixed-carrier/LICENSE b/research/p104-gaussian-fixed-carrier/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/research/p104-gaussian-fixed-carrier/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-gaussian-fixed-carrier/PEER-SOURCE.json b/research/p104-gaussian-fixed-carrier/PEER-SOURCE.json new file mode 100644 index 0000000000..b58332f598 --- /dev/null +++ b/research/p104-gaussian-fixed-carrier/PEER-SOURCE.json @@ -0,0 +1,55 @@ +{ + "archive_sha256": "37bf1d8c53553806ec7723b865a3e779be40d3b19a0466575adb9c5388c0198c", + "files_sha256": { + "K7-STACK-LEDGER.json": "a0c0d5b241e6861a5c49a287617e48fba56b09824f5ef4fcb7f03152edf37e8e", + "LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "NOTICE.md": "9c5ae9750012d305d917e625d14a33cc880e810e801e73364725bcdc24bffdb5", + "README.md": "9453d549e7a0b79986697c0da8d39981c675115c38a4b6714b28787e024c25fb", + "RESULT.json": "73516f60cc9ede03c93f18d0514b237e895316e545053e04e6776aae8d7f87ad", + "SOURCES.json": "6ca768ed86e019c6836f785719c3c015feb5bfdf5d55f405821e77dcb1bfba5a", + "TASK.json": "bcdac764f6414b947d0d57073bcc2b11aead859ff62f36894aa68d4eabf38772", + "VERIFY.json": "c273d2df34e13bdb352416a0143d4664a673c0218ae0ab1790b551084c4b8334", + "activation.py": "6e7f89d40a4d10ecd40a50e5b96334dfc64db90841ece7e3ef12eeca5ee5093b", + "bootstrap.py": "e7609488216e31baf99d3a9b6acaba0e45b1a4c97288d563c43bb414fd0eb183", + "check_binary_k7.py": "5eeb8f818725249cbabf215c323c3f8351b1c4ed3c127119341e6ed09f490dd6", + "check_binary_word.py": "638e571b311c5d876ac4a2bc4206bbf65c99b278f621df26e74a9e28e43b673e", + "check_chronology.py": "2723b25f86e181916ed361eebc44210d67bd0319d44c9b0f964ab01c1b83cb6d", + "check_complete.py": "6557212ffe9a9ab59b61fbca645553f147a09c12865fb5aef747b20389fba207", + "check_extended_stop.py": "29ef08908b49d6e2b41a01aa82d8baebc1c87d0632c72a71a82c096dd3a70215", + "check_five.py": "0c050daa030c7c4431b8c815fd052a63636350b6674e5f11647cff282e19e953", + "check_installation.py": "0f4ea154df1722e05402e34a97ea3a6827f028f09f0ba0d98ab5d1ad58c77cc2", + "check_nonzero_eight.py": "d3e72c1d434aecb299fcf39c127fd8ec8548ccc8659b92d7e7987114faf0d0d1", + "check_positive_word.py": "a88de880627489764668f6a3ec34f4861f61bd49cc74d3547d3ef18ee017dbe4", + "check_precision.py": "e1f1d7f26fda7f6fb5cd4caaeefbb9d9029541de76f4c7512badca0a16d4495c", + "check_reentry.py": "4504e7028f7193a4e6b5b1099219d5a20a3fec2178c8286f48b5a22d96bef686", + "check_scans.py": "bbacfa49243ed94fe5065dda55c9fe5cd61a05db67c7f26d4aefa5a9897a5bf9", + "check_stage_fences.py": "81bb9889facc2926bb3ebf31e18aaf4f108ed910478410902ddf8d99a07b1413", + "check_stage_inventory.py": "98e397218a2820cfe1b201eef302fa249b775cee912e0f83131a398af50320de", + "check_streamed.py": "edee7277378c59b13c9c300300cfddd8348e44c393512e06adc4f22d592b6e60", + "direct_exact.py": "52b5174ca33ba48746489184277ad1ae7661d13adc4ce69d99879038334f65ba", + "direct_recursive.py": "6cceadc2d532b451244fe054847c7b5c8dbca0678f1a2090a8473592c1e4a426", + "fiscal_scans.py": "bacc9db2bad0254081309c11269da09b1719479aac8542d34c7e463a8e6aa428", + "five_exchange.py": "cf56446080a3b31b654e58d91d3d62dc8790f0f06e3d458775d2723d607ae8fe", + "installations.py": "dfd94b6ea6abf014bb8319b809ac476f480bb62f3a5d947da15805cb57498fb4", + "low_inventory_scan.py": "f0ca0decb531c10f22ecde3a68e244ba1324fbe3d10f603081b8f352cea4af7c", + "machine.patch": "c1f53687f856898641d2c81f0deeaecfbf8daa7a7b66d2a9fda2bb7e85447431", + "normal_five.py": "53715e4178b92666b1392cb341b7362c697a8e454c41346a92b9519835b1f2c2", + "ordinary_clock.py": "91dcf0ef72dddbde998b80f3d8b30c8036de9ce97e06e2bbd9c4159bf292020d", + "outer_budget.py": "ca4438db28a447ed5c43d87d43f0ac10a0cb2b4e183342ac93139d517b9d4d02", + "outer_clock.py": "63363c3da673365f3ac5e1b7e318c6938005f1e9c9896799504cc598efbf96fa", + "predecessor/LAST-TICK-RECEIPT.json": "057e381fa486590b6190aceeac59aafe2102626a011a9f3fd7b871e6719512d5", + "predecessor/OVERLAY.json": "73aaf56a8a199cf3b7fc6c87316ca50298f47561e4b7c227edec6230f12a8403", + "predecessor/SOURCES.json": "3634f7a15b8ca6f1832e48bdd4e83bd764509f804196d956149a9a82e7512a64", + "predecessor/predecessor-8030.tar.gz": "769d5a05cc1373fa22ed5956af636992fcd19d7e5c1753a32033a73c358cd31c", + "raw_binary_stage.py": "0c805a525322acf4eb03f083c2c763f3046c3d488e1f993beb484a3e2c2ff4a9", + "receiver.patch": "7d0a2fe72a6be825414a4e9129d8cc5e601e296f6a097329d388cfb4cf07b884", + "retimed_supplier.py": "4bd969e3f1cfdcdf26c36e5fa7ab64c8e72904f516a51af6b2a29524e1cf8eb2", + "strong-bit-k7.json.gz": "9e7392c52bcf29c0cc58c54c619f95c28f476394c33e8e0a5aa30c9557d31362", + "transport.py": "98bdb540233794338b426d1b0d0e72cff7fcbbd08be702af0d81e237dbecaae9", + "true_high.py": "079f69d910edceec53165daa54522b3385756fe7e459136f97b7d624cb13983b", + "unpowered_price.py": "c273f2bcd46a114595ee669021aa6cd7223488f87cee0fe10bd762bc92177424", + "verify.py": "ac2c24698000291b493f5828fdbd778a5996eee88923e4a8faf555a5b4c2c73d" + }, + "head": "baaec65bf8e4c7e92be110a00d5b06522177931f", + "package": "research/p104-k7-retimed-binary/" +} diff --git a/research/p104-gaussian-fixed-carrier/README.md b/research/p104-gaussian-fixed-carrier/README.md new file mode 100644 index 0000000000..eb85ccfb50 --- /dev/null +++ b/research/p104-gaussian-fixed-carrier/README.md @@ -0,0 +1,26 @@ +# Fixed-carrier Gaussian coupling for the retimed P104 multiplier + +The candidate installs Gaussian price `1071523491/2^38` in the retimed signed multiplier of [#8052](https://github.com/CrocSwap/integer-mult-bounds/pull/8052) at `baaec65bf8e4c7e92be110a00d5b06522177931f`. The directed complete price at Gaussian height 20,000,000 is **κ = 0.0038981721342**. The binary heights are 60,000 and 960,000. The stopping denominator is 10^18 and the root uses 36 binary and 48 Gaussian calls. + +The exact difference against #8052's reported κ = 0.003898171 is `5671/5000000000000`, or exactly `(5671/194908550)%` (approximately **+0.00002909569641762765%**). This exceeds the previous installed Gaussian ceiling by `242818712673/409600000000000000000`. On the same candidate budget, the former Gaussian price (2092819/2^{29}) fails by that exact amount. The old ceiling is the installed price less (39/(256H)) and five stopping-gap units. + +The changed price enters actual transport construction. It changes 45 of the 54 routing shares. The scaled numerical word retains 105,216 productive and 564,144 paid labels. Every cell meets the same rank-descent, minimum-share, coefficient-width and finite-height bounds. The ordinary supplier and the 54 strict and four functional signed checks are evaluated with the new rate. The computed activation exponent is 21,020,646. The fixed setup, recurring clocks, storage, precision and conditional machine contracts follow the stock retimed installation under the same five inherited framework premises. The registered jobs check the constructive graph and negative control, cost and chronology, installation, physical binary and Gaussian suppliers, weighted receiver, stage tapes, and signed product. Production-size execution and independent formal verification of the inherited premises remain open. + +## Replay + +Use CPython 3.12 and Git from a clean checkout with the recorded base history. + +```sh +python3.12 -IB scripts/research_package.py --package research/p104-gaussian-fixed-carrier +python3.12 -IB scripts/research_package.py --package research/p104-gaussian-fixed-carrier-installation +``` + +Every replay mode authenticates and materializes the complete 48-file peer package from `peer8052.tar.gz`. [PEER-SOURCE.json](PEER-SOURCE.json) records its origin and file hashes by path. The predecessor notice and license are preserved in the archive. [RESULT.json](RESULT.json) records the exact recalculated prices and resource bounds. The selected record is outside this package. + +## Open next questions + +The raw Gaussian crossing lies between adjacent 50-bit dyadics around 0.003898180344795. A follow-up that moves this crossing should identify one exact native rewrite, rebuild the signed grade inventory and preserve controller ownership and restoration. Replay the unchanged raw supplier and its two-scale paid ledger before testing a rewrite. + +## Credit + +SYLforge supplied the seven-MOVE binary reduction and its full signed installation in [#8052](https://github.com/CrocSwap/integer-mult-bounds/pull/8052). Ali Romman supplied the unpowered two-scale Gaussian supplier and associated resource proof in [#8042](https://github.com/CrocSwap/integer-mult-bounds/pull/8042). Clear1nsight supplied retimed financing and directed cost precedent in [#8050](https://github.com/CrocSwap/integer-mult-bounds/pull/8050). The predecessor's archived NOTICE credits the inherited compiler, controllers and CI work. OpenAI Codex assisted the derivative and separation checks, implementation and replay. diff --git a/research/p104-gaussian-fixed-carrier/RESULT.json b/research/p104-gaussian-fixed-carrier/RESULT.json new file mode 100644 index 0000000000..94ed20cb53 --- /dev/null +++ b/research/p104-gaussian-fixed-carrier/RESULT.json @@ -0,0 +1,566 @@ +{ + "predecessor_comparison": { + "pr_8035": { + "head": "ea776471bf8ed143a0625cf2d7532f65d15eb5f9", + "model": "powered_6stage_retimed", + "kappa": "0.0038901152865907", + "binary_paid": 104904, + "binary_stages": 6 + }, + "pr_8042": { + "head": "dfd25d553a843a946ca0b94130a5ff8943e98fdd", + "model": "unpowered_7stage_retimed", + "kappa": "0.003890115286594445", + "binary_c": "4484997569314581/1152921504606846976", + "gaussian_c": "2092819/536870912", + "binary_paid": 104904, + "binary_stages": 7, + "numerical_H": 19000 + }, + "pr_8050": { + "head": "328b858e24709495843abc751fcbf5df35a89da8", + "model": "unpowered_7stage_dyadic_endpoint", + "kappa": "0.003890115286594461", + "binary_c": "287039844436133239/73786976294838206464", + "gaussian_c": "2092819/536870912", + "binary_paid": 104904, + "binary_stages": 7, + "numerical_H": 36000 + }, + "present_k7": { + "binary_c": "4391986206293/1125899906842624", + "binary_c_decimal": "0.003900867368050091", + "gaussian_c": "1071523491/274877906944", + "gaussian_c_decimal": "0.003898179751558928", + "binary_paid": 104652, + "binary_dirty_clears": 3426, + "binary_moves": 2796, + "binary_stages": 2, + "log2_fixed_setup_and_install_le": 513, + "conservative_36k_kappa": "0.003893947", + "compact_1m_kappa": "0.003898026", + "extended_10m_kappa": "0.003898163", + "extended_kappa": "0.0038981721342" + } + }, + "baseline": { + "compact": { + "binary_H": [ + 260000, + 1600000 + ], + "numerical_H": 610000, + "kappa": "96998200889/25000000000000", + "A": 2471428, + "log2_S_le": 1638400002, + "old_installed_visits_log_gt": 11191922, + "log2_C_le": 30535241478 + }, + "high-rate": { + "binary_H": [ + 25000000, + 160000000, + 1000000000, + 6000000000, + 36000000000, + 224000000000 + ], + "numerical_H": 1600000, + "kappa": "389011519729/100000000000000", + "A": 267186701153, + "log2_S_le": 229376000000003, + "old_installed_visits_log_gt": 1567999985622, + "log2_C_le": 4377559200001478 + }, + "price-match": { + "binary_H": [ + 175000000, + 1120000000, + 7000000000, + 42000000000, + 252000000000, + 1568000000000 + ], + "numerical_H": 1600000, + "kappa": "389011527141/100000000000000", + "A": 1870297303584, + "log2_S_le": 1605632000000003, + "old_installed_visits_log_gt": 10975999985622, + "log2_C_le": 30642913440001478 + }, + "fixed-stock-stop": { + "binary_H": [ + 106811524, + 1708984375, + 27343750000, + 437500000000, + 7000000000000, + 112000000000000 + ], + "numerical_H": 1600000, + "kappa": "9725288215981/2500000000000000", + "A": 119466661575676, + "log2_S_le": 114688000000000003, + "old_installed_visits_log_gt": 783999999983102, + "log2_C_le": 1957341750160010694 + }, + "small-gap": { + "binary_H": [ + 6835937536, + 109375000000, + 1750000000000, + 28000000000000, + 448000000000000, + 7168000000000000 + ], + "numerical_H": 1600000, + "kappa": "38901152865907/10000000000000000", + "A": 7645866239991957, + "log2_S_le": 7340032000000000003, + "old_installed_visits_log_gt": 50175999999982031, + "log2_C_le": 125269872000160591302 + } + }, + "binary": { + "productive": 18906, + "paid": 104652, + "cells": 24, + "directed_margin": "55321779883482082595639/244544123725211460862213013703178693829", + "factor_upper_times_1000000": 1101878 + }, + "positive": { + "productive": 105216, + "paid": 564144, + "cells": 54, + "directed_margin": "581301517505308420437811839033/712832080757285114692213031302131209278", + "factor_upper_times_1000000": 1111354 + }, + "profiles": { + "selected-price": { + "A_lower_in_this_price": 5936, + "kappa": "363005817/100000000000", + "binary_H": [ + 5610 + ], + "numerical_H": 1024, + "width_logs": [ + 516120, + 94208 + ], + "stage_rates": [ + "72601163401/20000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "40046673744737759/335544320000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 4, + "first_extent_bits_minus_b": -6909, + "last_extent_bits_minus_b": -6908, + "minimum_width": 3541248, + "log2_axis_count": 6888, + "largest_axis_width": 5592406, + "private_clock_log2_upper": 5733779202, + "actual_dense_root_entry_log2": 11184812 + }, + "binary_cuts": [ + 5697 + ], + "public_exponent_A": 6913, + "first_public_offset": 4, + "initial_s": 6914, + "stage_and_outer_fixed_log_overhead": 1960, + "retimed_first_stripe_margin": 1443, + "retimed_all_size_margin_floor": 1385, + "absolute_log2_private_control_envelope": 5744642, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 91914289, + "log2_C_le": 92141171 + }, + "small": { + "A_lower_in_this_price": 16889, + "kappa": "19/5000", + "binary_H": [ + 18400 + ], + "numerical_H": 1600, + "width_logs": [ + 1692800, + 147200 + ], + "stage_rates": [ + "76000000001/20000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "994857957832159/335544320000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 4, + "first_extent_bits_minus_b": -20341, + "last_extent_bits_minus_b": -20340, + "minimum_width": 10418432, + "log2_axis_count": 20319, + "largest_axis_width": 11184811, + "private_clock_log2_upper": 11474169722, + "actual_dense_root_entry_log2": 22369622 + }, + "binary_cuts": [ + 18539 + ], + "public_exponent_A": 20345, + "first_public_offset": 4, + "initial_s": 20346, + "stage_and_outer_fixed_log_overhead": 1960, + "retimed_first_stripe_margin": 8151, + "retimed_all_size_margin_floor": 7892, + "absolute_log2_private_control_envelope": 18841602, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 301465649, + "log2_C_le": 301819251 + }, + "compact": { + "A_lower_in_this_price": 82402, + "kappa": "96998200889/25000000000000", + "binary_H": [ + 9100, + 144000 + ], + "numerical_H": 8500, + "width_logs": [ + 837200, + 13248000, + 782000 + ], + "stage_rates": [ + "1867384696541679599/500000000000000000000", + "387992803561/100000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "9381267437871883/28521267200000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -161988, + "last_extent_bits_minus_b": -161987, + "minimum_width": 82941696, + "log2_axis_count": 161963, + "largest_axis_width": 89478486, + "private_clock_log2_upper": 91792081097, + "actual_dense_root_entry_log2": 178956972 + }, + "binary_cuts": [ + 9201, + 153265 + ], + "public_exponent_A": 161992, + "first_public_offset": 2, + "initial_s": 161993, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 78958, + "retimed_all_size_margin_floor": 76498, + "absolute_log2_private_control_envelope": 147456002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 2508390457, + "log2_C_le": 2510262059 + }, + "conservative-36k": { + "A_lower_in_this_price": 261050, + "kappa": "3893947/1000000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 36000, + "width_logs": [ + 5520000, + 88320000, + 3312000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "77878940001/20000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000", + "ordinary_margin": "1/100000000000000", + "positive_margin": "987180376477/1006632960000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -1056614, + "last_extent_bits_minus_b": -1056613, + "minimum_width": 540990208, + "log2_axis_count": 1056586, + "largest_axis_width": 715827883, + "private_clock_log2_upper": 734090855275, + "actual_dense_root_entry_log2": 1431655766 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 1056618, + "first_public_offset": 2, + "initial_s": 1056619, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 526259, + "retimed_all_size_margin_floor": 509832, + "absolute_log2_private_control_envelope": 983040002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 16719601659 + }, + "compact-1m": { + "A_lower_in_this_price": 1539018, + "kappa": "1949013/500000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 1000000, + "width_logs": [ + 5520000, + 88320000, + 92000000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "77960520000001/20000000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/1000000000000000000", + "ordinary_margin": "1/100000000000000000", + "positive_margin": "59047784074723/41943040000000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -2020614, + "last_extent_bits_minus_b": -2020613, + "minimum_width": 1034558208, + "log2_axis_count": 2020585, + "largest_axis_width": 1431655766, + "private_clock_log2_upper": 1468086707467, + "actual_dense_root_entry_log2": 2863311532 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 2020618, + "first_public_offset": 2, + "initial_s": 2020619, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 1008259, + "retimed_all_size_margin_floor": 976770, + "absolute_log2_private_control_envelope": 1024000002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 16931681659 + }, + "extended-10m": { + "A_lower_in_this_price": 9670249, + "kappa": "3898163/1000000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 10000000, + "width_logs": [ + 5520000, + 88320000, + 920000000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "779632600000001/200000000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/10000000000000000000", + "ordinary_margin": "1/1000000000000000000", + "positive_margin": "318176529810799/209715200000000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 4, + "first_extent_bits_minus_b": -11020635, + "last_extent_bits_minus_b": -11020634, + "minimum_width": 5642568960, + "log2_axis_count": 11020604, + "largest_axis_width": 5726623062, + "private_clock_log2_upper": 5875358240096, + "actual_dense_root_entry_log2": 11453246124 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 11020639, + "first_public_offset": 4, + "initial_s": 11020640, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 5508258, + "retimed_all_size_margin_floor": 5336155, + "absolute_log2_private_control_envelope": 10240000002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 18911681659 + }, + "extended": { + "A_lower_in_this_price": 20577448, + "kappa": "19490860671/5000000000000", + "binary_H": [ + 60000, + 960000 + ], + "numerical_H": 20000000, + "width_logs": [ + 5520000, + 88320000, + 1840000000 + ], + "stage_rates": [ + "3862438898577864693/1000000000000000000000", + "779634426840001/200000000000000000" + ], + "signed_gate": { + "strict": 54, + "functional": 4, + "smallest_margin": "1/10000000000000000000", + "ordinary_margin": "1/1000000000000000000", + "positive_margin": "35949970799/209715200000000000000000" + }, + "geometry": { + "public_offset_above_2_to_A": 2, + "first_extent_bits_minus_b": -21020642, + "last_extent_bits_minus_b": -21020641, + "minimum_width": 10762572544, + "log2_axis_count": 21020610, + "largest_axis_width": 11453246123, + "private_clock_log2_upper": 11749670261735, + "actual_dense_root_entry_log2": 22906492246 + }, + "binary_cuts": [ + 60306, + 1020370 + ], + "public_exponent_A": 21020646, + "first_public_offset": 2, + "initial_s": 21020647, + "stage_and_outer_fixed_log_overhead": 1964, + "retimed_first_stripe_margin": 10508257, + "retimed_all_size_margin_floor": 10179908, + "absolute_log2_private_control_envelope": 20480000002, + "storage_upper": "6.2 p T < 297.6 n bits", + "log2_fixed_setup_and_install_le": 513, + "log2_ordinary_clock_le": 16711680057, + "log2_C_le": 21111681659 + } + }, + "prefix": { + "small_stop_tail_factor_log2": 1591, + "private_prefix_log2": 126082079, + "controls_prefix_log2": 5081414, + "private_prefix_after_input_log2": 84484466, + "early_log2_C_bound": 84500000, + "tail_log2_fixed_factor_including_b_to_n": 1434, + "tail_unit": "(1 + B + Z) * n * (1 + log2(n))^(1-kappa)" + }, + "first_controller_shape": { + "first_b": 18508, + "first_L": 18496, + "first_P": 606385061, + "first_side_bit_length": 18496, + "host_list": "OverflowError" + }, + "first_numerical_placement": { + "root_tag": [ + "root", + "rotated", + 0, + 4080, + 1 + ], + "per_target_probability": "1/624", + "placements": { + "1024": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "1600": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "8500": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "36000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "1000000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "10000000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + }, + "20000000": { + "period": 1620, + "first_tickets": [ + 0, + 324, + 648 + ] + } + } + } +} diff --git a/research/p104-gaussian-fixed-carrier/SOURCES.json b/research/p104-gaussian-fixed-carrier/SOURCES.json new file mode 100644 index 0000000000..e7eefb9540 --- /dev/null +++ b/research/p104-gaussian-fixed-carrier/SOURCES.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "base_commit": "0618e75a22cec54d1651394ef83d088551b7f026", + "files": [ + { + "path": "certificates/selected-result.json", + "usage": "provenance", + "git_blob": "75d77b328ea02ded535e7f23aee5b1e55d0bb1a8", + "sha256": "154c3d30455d778fd3343b6b4851f0fa4665f0f7625b0adb3675e2bafbbf6bf1" + }, + { + "path": "docs/research/agent-task-catalog.json", + "usage": "provenance", + "git_blob": "3404fbdd5e7529a0674eef26114b5071e4586cec", + "sha256": "ead6cdc9d0af6d58e8a49744d8ec8c7c15e13d2ba93c276c434bcf9b51b93a81" + } + ] +} diff --git a/research/p104-gaussian-fixed-carrier/TASK.json b/research/p104-gaussian-fixed-carrier/TASK.json new file mode 100644 index 0000000000..b9942d205d --- /dev/null +++ b/research/p104-gaussian-fixed-carrier/TASK.json @@ -0,0 +1,107 @@ +{ + "schema_version": 1, + "task_id": "scalar-to-moment", + "priority_revision": 8, + "base_commit": "0618e75a22cec54d1651394ef83d088551b7f026", + "original_card": { + "id": "scalar-to-moment", + "question": "Can a scalar/frame rewrite improve the complete signed moment through paid jobs, productive targets, or both?", + "starting_points": [ + "docs/research/current-priorities.md", + "docs/research/research-family-status.md", + "certificates/selected-result.json", + "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md", + "docs/research/recursive-invoice-preflight.md" + ], + "methods": [ + "Construct and independently check one source-bound instance of the stated first experiment.", + "Seek an exact counterexample or target-specific complete-budget obstruction to that same proposed change." + ], + "acceptance_gate": "Require a legal chronological rewrite and favorable complete signed target-minus-paid moment with all extra charges. Unchanged ADD counts or unchanged paid-call counts alone decide neither success nor failure. Compiler, native and outer admission remain separate obligations.", + "first_step": { + "command": [ + "python3", + "-B", + "scripts/research_selected_baseline.py" + ], + "expected": "PASS_RESEARCH_BASELINE_BINDINGS_ONLY", + "inspect": "Read revision 8, the selected review and live exact-source handoffs. Then follow this card's bounded first_experiment.", + "scope": "Source-bound orientation only, not a supplier replay or theorem proof." + }, + "first_experiment": "Construct one legal source-bound rewrite and compare complete before/after P and T. Charge restoration, source windows and owned helpers. A paid call need not disappear: a legal target split or rank redistribution may win. Stop if the signed moment is unchanged or the consumer repays the gain. Do not extend a scalar-only census on ADD counts.", + "bottleneck_link": "Judge the actual current supplier contract and complete signed target/paid bill; frozen-profile ceilings require an applicability proof.", + "allowed_variations": [ + "One exact source head, helper/cut region or quantified proposition and changed hypothesis; check live handoffs first. Different seeds are not different scopes." + ], + "scope_change_triggers": [ + "Changing source head, helper/cut domain, operation alphabet or caller boundary without recording the new scope.", + "Treating an archived proposal or local numerical pass as complete supplier admission." + ], + "overlap_terms": [ + "signed moment", + "target split", + "rank exchange", + "scalar rewrite" + ], + "existing_checks": [ + { + "scope": "PR #3998: consecutive A2 scalar contraction", + "evidence": "research/staged544-a2-graph-rewrite/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "389268a6b5e0373a3125d5c6fcd6995f4ea324f5", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4019: separated A2 sites with unchanged recursive histogram", + "evidence": "research/staged544-separated-a2/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "f408e09df300b575235f7f77f81948071397e16d", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4112: composition audit", + "evidence": "research/staged544-a2-composition-audit/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "205b7380656ba4b6316a8a493b1a3c679b8f7a0e", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "PR #4152: A1858 contraction audit", + "evidence": "research/staged544-a1858-contraction-audit/README.md", + "remaining": "A genuinely changed paid itinerary or a distinct independent audit; no default scalar-only expansion.", + "status": "author-checked", + "source_commit": "caaa14cde5962adc372fdca71f63d0f29e73c8b2", + "selected_record_sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129" + }, + { + "scope": "Selected PR5599: complete helper-subspace construction and independent caller replay; five framework assumptions remain.", + "evidence": "docs/research/pr-intake-evidence/pr5599-completion/PROOF-REVIEW.md", + "remaining": "The next experiment must identify uncovered source-specific work. Successor archive intake does not transfer this admission.", + "status": "reviewed", + "source_commit": "09dd0965711ca7eeb169057a420abab1c9052137", + "selected_record_sha256": "2a0220e866417774606e0f991e41b9c1d26b1f43b97857238cf478dbc7d330b5" + } + ] + }, + "scope_status": "refined", + "actual_scope": "Install and independently replay a stricter Gaussian coupling on the same two-scale retimed receiver and fixed carrier as PR #8052.", + "scope_change_reason": "The stronger binary word moves the binding limit to the Gaussian dyadic and its booked finite-height debit.", + "bottleneck_link": "The Gaussian installed raw rate minus 39/(256 H) and the five stopping-gap units governs the complete extended profile.", + "budget_minutes": 60, + "stop_rule": "One fixed carrier and one trial dyadic. Require exact separation from the previous installed ceiling and all eight signed checks.", + "outcome": "completed", + "evidence": "PEER-SOURCE.json, RESULT.json, and verify.py modes on the fixed-carrier coupling.", + "author": "Campaign contributor", + "ai_assistance": "OpenAI Codex assisted the binding inequality analysis, implementation and independent replay.", + "open_questions": [ + { + "question": "Can a charged Gaussian native operation be simplified to raise the literal moment crossing?", + "why_it_matters": "The unchanged 48-call word still limits the achievable Gaussian rate.", + "first_step": "Reconstruct the complete paid and productive grade ledger and select one literal paid operation with a strictly positive directed saving.", + "blocked_by": "A literal signed arbitrary-input rewrite and proof of restoration have yet to be supplied." + } + ] +} diff --git a/research/p104-gaussian-fixed-carrier/VERIFY.json b/research/p104-gaussian-fixed-carrier/VERIFY.json new file mode 100644 index 0000000000..b2d5339e25 --- /dev/null +++ b/research/p104-gaussian-fixed-carrier/VERIFY.json @@ -0,0 +1,79 @@ +{ + "schema_version": 1, + "status": "ready", + "python": "3.12", + "requirements": [], + "inputs": [ + "research/p104-gaussian-fixed-carrier/PEER-SOURCE.json", + "research/p104-gaussian-fixed-carrier/peer8052.tar.gz", + "research/p104-gaussian-fixed-carrier/RESULT.json" + ], + "commands": [ + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py", + "binary" + ], + "timeout_seconds": 70, + "checks": "Replay the constructive k7 binary graph on all 630 registers and 36 LOCAL calls, verify all 636 frames and 2353 delta charts, run mod-3 and mod-9 sparse weighted checks, certify BINARY_C, verify K7-STACK-LEDGER.json, and confirm PR #8027 fails BINARY_C." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py", + "cost" + ], + "timeout_seconds": 55, + "checks": "Verify RESULT.json across binary/numerical tariffs, all seven installed profiles, entrance bounds, signed outer budgets, and fast placement receipts." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py", + "schedule" + ], + "timeout_seconds": 75, + "checks": "Check chronology, precision floors, streamed cross-parent loans, and reentrant returns across all profiles." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py", + "physical" + ], + "timeout_seconds": 420, + "checks": "Run the literal unpowered binary constant-address emitter, two-scale Gaussian positive word replay, and extended stop exponent bounds." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py", + "slabs" + ], + "timeout_seconds": 45, + "checks": "Verify Gaussian historical stage fences, arena heads, scratch slots, and restoring ordinary shuttles." + }, + { + "argv": [ + "{python}", + "-I", + "-B", + "{package}/verify.py", + "product" + ], + "timeout_seconds": 240, + "checks": "Run physical_product(EXTENDED) at numerical_H=20000000 and verify product -345550037539, coefficients prefix, and restored owners." + } + ] +} diff --git a/research/p104-gaussian-fixed-carrier/peer8052.tar.gz b/research/p104-gaussian-fixed-carrier/peer8052.tar.gz new file mode 100644 index 0000000000..304d0845d6 Binary files /dev/null and b/research/p104-gaussian-fixed-carrier/peer8052.tar.gz differ diff --git a/research/p104-gaussian-fixed-carrier/verify.py b/research/p104-gaussian-fixed-carrier/verify.py new file mode 100644 index 0000000000..d17169bcb3 --- /dev/null +++ b/research/p104-gaussian-fixed-carrier/verify.py @@ -0,0 +1,82 @@ +"""Replay a fixed-carrier price edit by restoring the exact registered peer package.""" + +from argparse import ArgumentParser +from hashlib import sha256 +import json +from pathlib import Path +import subprocess +import sys +import tarfile +from tempfile import TemporaryDirectory + +HERE = Path(__file__).resolve().parent +EXPECTED_HEAD = "baaec65bf8e4c7e92be110a00d5b06522177931f" +REPLACEMENTS = { + "installations.py": ( + ("Q(2092819, 2**29)", "Q(1071523491, 2**38)"), + ('Q(".003898171")', 'Q(".0038981721342")'), + ), + "check_complete.py": ( + ('"gaussian_c_decimal": "0.003898179158568382"', '"gaussian_c_decimal": "0.003898179751558928"'), + ('"extended_kappa": "0.003898171"', '"extended_kappa": "0.0038981721342"'), + ), + "check_extended_stop.py": ( + ("F(2092819,2**29)", "F(1071523491,2**38)"), + ), +} +MODES = ("binary", "cost", "schedule", "install", "physical", "receiver", "slabs", "product") + + +def restore(work: Path) -> None: + source = json.loads((HERE / "PEER-SOURCE.json").read_bytes()) + if source["head"] != EXPECTED_HEAD: + raise ValueError("Unexpected peer commit") + archive = HERE / "peer8052.tar.gz" + if sha256(archive.read_bytes()).hexdigest() != source["archive_sha256"]: + raise ValueError("Peer archive differs") + files = source["files_sha256"] + seen = set() + with tarfile.open(archive) as bundle: + for entry in bundle: + path = Path(entry.name) + if path.is_absolute() or ".." in path.parts or str(path) != entry.name: + raise ValueError("Unexpected archive path") + if not entry.isfile() or entry.name in seen or entry.name not in files: + raise ValueError(f"Unexpected or repeated peer file {entry.name}") + content = bundle.extractfile(entry).read() + if sha256(content).hexdigest() != files[entry.name]: + raise ValueError(f"Source differs at {entry.name}") + target = work / path + target.parent.mkdir(parents=True, exist_ok=True) + target.write_bytes(content) + seen.add(entry.name) + if seen != files.keys(): + raise ValueError("Peer archive is missing a file") + + +def edit_installation(work: Path) -> None: + for name, replacements in REPLACEMENTS.items(): + path = work / name + text = path.read_text() + for old, new in replacements: + if text.count(old) != 1: + raise ValueError(f"Expected one change point in {name}") + text = text.replace(old, new) + path.write_text(text) + (work / "RESULT.json").write_bytes((HERE / "RESULT.json").read_bytes()) + + +def main() -> None: + parser = ArgumentParser(description=__doc__) + parser.add_argument("mode", choices=MODES) + args = parser.parse_args() + with TemporaryDirectory(prefix="p104-fixed-carrier-") as temporary: + work = Path(temporary) + restore(work) + edit_installation(work) + subprocess.run([sys.executable, "-IB", str(work / "verify.py"), args.mode], check=True) + print("PASS_GAUSSIAN_FIXED_CARRIER", args.mode, flush=True) + + +if __name__ == "__main__": + main()