Skip to content

Validate Python MakeSsa D facade candidate - #158

Draft
yoff wants to merge 2 commits into
yoff-freecad-guarded-use-hotspotfrom
yoff-makessa-d-validation
Draft

Validate Python MakeSsa D facade candidate#158
yoff wants to merge 2 commits into
yoff-freecad-guarded-use-hotspotfrom
yoff-makessa-d-validation

Conversation

@yoff

@yoff yoff commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Scope

Standalone diagnostic layer on draft #156 (yoff-freecad-guarded-use-hotspot at 80939b08790e0de870e8a5014b95f4fdfe5ae961). This PR is intentionally not inserted into or appended to native stack github#155; #157 remains the existing top of that stack and is excluded from both DCA variants.

The candidate is the sealed ordered A→B core-cache removal plus B→D Python facade/adapter correction. No broad raw-reachability cache or new shared API is introduced.

Sealed identity

  • Exact production commit: 17e9303e5b8d37912082e3388ed0907e6cfdfbdb
  • Sealed production patch SHA-256: 1ff1857efe80cedc6d391895627b47f2feb90c9adc984f88935d6617e4c50b41
  • Stable patch-id: 67f79f7e3eacf06a5e9913c66344a7cdf1d869c6
  • Formatter/contract commit: 8be73c6371df1916d428545186f8b0d03119c5e2
  • Sealed artifact manifest SHA-256: d06d57a54681f6af496050b4ccd991bc6547f05ccf6322f30601ee4a568fb97f

Local evidence

Deterministic joined tuples versus A:

Control A D Delta
Airflow CSRF 1,067,603,371 1,056,087,345 -1.08%
Nova NoSQL 1,019,388,957 1,001,162,239 -1.79%
Salt unsafe deserialization 1,835,223,639 1,847,110,340 +0.65%
CPython unsafe deserialization 2,053,352,357 2,035,674,305 -0.86%

D beats prior C on every source. CPython and Nova repeats retained invariant joined tuples and BQRS. Exact BQRS, focused tests, real-database facade/use contracts, capture SSA, and ordinary/synthetic-exit non-overlap passed.

The private synthetic-exit cache materializes once with 201,609 / 136,740 / 245,694 / 218,282 rows for Airflow / Nova / Salt / CPython and receives a target-query cache hit. It does not contain ordinary reads. Retained cache remains 7,168–25,304 KiB below A with unchanged tuple-pool sizes.

Validation

  • dataflow-new-ssa/SsaTest.ql
  • dataflow-new-ssa/AdjacentUsesContract.ql
  • dataflow-new-ssa/FacadeAdapterContract.ql
  • dataflow-new-ssa-vs-legacy/CmpTest.ql
  • dataflow/variable-capture/CaptureTest.ql
  • dataflow/variable-capture/dataflow-capture-consistency.ql

All passed. The focused facade contract reports zero ordinary-read, end-of-block, phi-input, uncertain-write, adapter-use, facade-exit-read, and ordinary/synthetic-exit overlap mismatches; it observes 14 synthetic exit uses. Airflow CSRF exact-output control reproduced BQRS hash 05953605a10e3fd0994ef0f614ff5abd.

yoff and others added 2 commits September 8, 2026 17:25
Apply the sealed MakeSsa D production candidate exactly.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Format the sealed facade adapter and cover ordinary and synthetic-exit uses.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added the Python label Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant