Skip to content

Reuse parsed strict payloads for mismatch diagnostics - #2939

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
petalas:research/independent-result-20261016-2220
Oct 16, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
petalas:research/independent-result-20261016-2220

Conversation

@petalas

@petalas petalas commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Summary

PR2693 reparses both JSON inputs after a proof-relevant mismatch. This opt-in successor reuses the parsed values while preserving PR2040's tree evaluation order, invalid-input fallback and complete diagnostics.

- paired mismatch -> decompress and parse both again -> original diagnostics
+ paired mismatch -> original diagnostics on already parsed values

The new package is research/strict-payload-negative-reuse. It includes a registered replay, exact source pins, controls, benchmark and scope. Frozen callers, scientific inputs and the selected frontier remain unchanged.

Evidence

  • Before: four parses and four decompressions on a compressed mismatch. After: two of each with the same literal typed diagnostic.
  • All 1,012 retained full-result differential comparisons and both canonical receipts agree. All 18 control groups pass in registered CPython 3.12.15 replay and optimized Python 3.14, including the actual CLI, source/manifest drift, timing policy and invalid-sibling precedence.
  • Three rotating-order trials on the same five largest compressed files: sum of per-file median times 7.403s to 6.073s, 1.219x over PR2693, on macOS 27.0.1 arm64. PR2040 directly takes 6.149s; no improvement over that classifier is claimed. Three files share an identical inherited template. This is a fixed added-field mismatch workload, not a full-replay speedup or performance threshold.
  • Independent internal review caught a retained-test module alias error, corrected before the final tests. No remaining finding or independent human review is claimed.
python3.12 -W error -B scripts/research_package.py --package research/strict-payload-negative-reuse
python3.14 -I -O -B research/strict-payload-negative-reuse/test_compare.py
python3.12 -I -B research/strict-payload-negative-reuse/benchmark.py --rounds 3 --out /tmp/negative-reuse-benchmark.json

Started from canonical main d3add2cc2; checked against refreshed canonical main 991c50d1e before submission. Priority revision 5, guidance and all 17 inputs remain unchanged. Refreshed overlap covered 472 open PRs, 1,622 Discussion records and 2,157 closed PRs with complete pagination, within the helper's documented search limits. Canonical investigation and handoff.

Credit ywz65/PR2693 for paired traversal and this negative-path handoff; commdata2338/PR2040 for strict semantics and controls; Josie Elliston/PR1824 and the retained supplier/archive authors for the corpus. Detailed attribution is retained in the package. Substantial AI assistance was used; no independent human review is claimed.

Merge Danger

Door: two-way.

Blast Radius: opt-in.

No default caller adopts this adapter. It retains the predecessor's trusted-local-input contract, inventory and integer limits; the separate PR2921/PR2803/PR2344 adapters are not composed here. Caller-specific adoption, other workloads, peak memory and hosted execution remain unverified. No supplier cold replay or new kappa is claimed.

@Mister-Meeseeks
Mister-Meeseeks merged commit a36ebe3 into CrocSwap:main Oct 16, 2026
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants