Repository navigation
perf(l5): det_port keeps a translated port per translate fingerprint (Part of #8599) - #8802
Merged
Merged
Conversation
… a case-only change no longer re-translates (Part of #8599) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This was referenced Nov 20, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #8599. Follow-up to #8643.
det_port.port_casenow keeps each translated port in the equivalence cache (~/.cache/gitgalaxy-equivalence/port), keyed by the corpus state, every engine file, the case without itsscenariosandnotes, the layers, and the bytes of the four tools that shape the port (det_port.py,equivalence_common.py,equivalence_java.py,det_parity.py).det_mutation.py refresh/run(which translate throughdet_port.py run --translate-only) therefore no longer translate a program again for a case-only change (scenarios, notes). A failed translation is returned, never cached;GITGALAXY_EQUIV_CACHE=offstill translates every time.Honest size: the estate scan and refactor were already cached, so the saving is the program's own translation (2.7-2.8 s warm on UPDCUST, 15.8 s cold on readcust) per case; the baseline proof is untouched.
Checklist: partial [c:eed19d0d] -- the per-case translation is skipped on an unchanged fingerprint; no live
refreshof UPDCUST was timed end to end (the cold/warm byte comparison on readcust is in the evidence below).Checklist: partial [c:17c4dbfd] -- the translation and scan are shared across a batch via the cache; the baseline proof is still run per case.
Evidence
det_port.py run carddemo-readcust --translate-onlytwice into two fresh work dirs with an empty cache: translate_seconds 1.5 then 0.0, anddiff -rof the twocarddemo-readcustdirs (port + generated) is empty;summary.jsonresults identical but for the timing. 11 new unit tests pass (fingerprint ignores scenarios/notes, moves on any translated input, hit/miss, failure never cached, cache off).Class / Sibling gaps
Class: work a
refresh/runbatch repeats per case although its inputs did not change. Members: (1) estate scan and refactor: already cached byequivalence_cache(handled); (2) the program translation per case: handled here, covers everydet_port.py runcaller (det_mutationrun/refresh, proof sweeps,check), each served by the sameport_case; (3) the baseline proof per case (13-26 s): missing, a different mechanism (needs a proof-result cache keyed by port + case + harness); (4) the CICS in-process path running every scenario before judging (c:6437d0ca): missing, different mechanism; (5) java-facade survivors in the in-process runner (c:47d5fdb6): missing; (6) detmut / ground-truth CI shards re-proving unchanged inputs (c:1e9afc06): not checked here.Remaining slices
tests/tools/mutation.py,evidence.py; a proof-result cache keyed by port, case and harness fingerprints).mutation.py).mutation.py,survivor_attack.py)..github/workflows,tests/tools/*_plan.py).Files
Hand-written:
tests/tools/det_port.py,tests/tools/equivalence_cache.py,tests/tools/test_det_port_cache_8599.py,docs/language_status/mutation_testing.md(4).Lessons for agents
heavy-run.shcan queue a wholedet_port.py runfor many minutes behind other workers; start the one real-corpus check early and write tests meanwhile.🤖 Generated with Claude Code