fix: integrate deployed reports with PPI KaKs handoff

This commit is contained in:
potaser
2026-08-11 04:48:38 +08:00
parent 8b61269d3f
commit 4a80793b4a
19 changed files with 1654 additions and 231 deletions
@@ -0,0 +1,36 @@
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
def _block(source: str, start: str, end: str) -> str:
begin = source.index(start)
finish = source.index(end, begin)
return source[begin:finish]
def test_multilingual_frontend_keeps_critical_ppi_kaks_state_chain_in_sync() -> None:
canonical = (ROOT / "apps/web/vue3/index.html").read_text(encoding="utf-8")
multilingual = (ROOT / "apps/web/vue3/index_ml.html").read_text(encoding="utf-8")
boundaries = (
(
"const resumePpiKaksPausedStages = async",
"const downloadRecommendedPpiReferenceBundle = async",
),
(
"const monitorPpiReferenceBundleDownload =",
"const ppiHasNearReferenceBeforeArabidopsis =",
),
(
"const ensurePpiKaksDependencyOwner = async",
"const submitExecuteRequestWithAutoAnnotation = async",
),
(
"const kaksReferenceChoiceParams =",
"const confirmedStageParamsForExecution =",
),
)
for start, end in boundaries:
assert _block(multilingual, start, end) == _block(canonical, start, end)