HEL-892: add pinned H3 saved-state reference conversion

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-30 06:47:51 +08:00
co-authored by multica-agent
parent 201ddf7622
commit 5f235dbbb4
79 changed files with 38262 additions and 21 deletions
@@ -337,8 +337,12 @@ def test_fixed_sources_and_original_profile_cohorts_remain_identical():
assert verify(REPO / "docs/hel-892/grid-reference")["sources_verified"]
old = json.loads((REPO / "docs/hel-892/scail-load-evidence/library.json").read_bytes())
profiles = tuple(old["profiles"])
assert len(profiles) == 24 and tuple(audit.REFERENCE_PROFILES[:-1]) == profiles
current = audit.audit_library(REPO, baseline_profiles=profiles)
assert (
len(profiles) == 24
and tuple(p for p in audit.REFERENCE_PROFILES if p not in (GRID_PROFILE, audit.H3_PROFILE))
== profiles
)
current = audit.audit_library(REPO, (*profiles, GRID_PROFILE), baseline_profiles=profiles)
for before, after in zip(old["cases"], current["cases"]):
assert before["source_path"] == after["source_path"]
assert before["attempts"] == after["attempts"][:24]