feat: ams.roadmap renders the emulator's gaps per scope from an Atlas export

Methods without a registration (with the original signature), emulator
stubs, and events/properties the emulator never names, each with the
engine families whose DLLs have it so core API sorts before late ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Patryk Gensch
2026-10-24 20:35:42 +02:00
co-authored by Claude Opus 5.5
parent 835cd4f729
commit 95ad4edb5c
2 changed files with 109 additions and 0 deletions
+18
View File
@@ -368,3 +368,21 @@ def test_name_dispatch_rows_join_methods_without_ids(tmp_path):
entry = row(result, "ANIMO", "SETPOSITION")
assert entry["original"][0]["impl_addr"] == "0x10027ff0"
assert entry["signatures"] == ["(int, int) → —"]
def test_roadmap_lists_gaps_with_engine_families(tmp_path):
from ams.roadmap import render
tracker = {"emulator": {"commit": "f" * 40, "dirty": False},
"binaries": [{"id": "a", "family": "Piklib 8"}, {"id": "b", "family": "BlooMoo"}],
"types": [{"name": "VECTOR", "methods": [
{"name": "NORMALIZE", "status": "missing", "original": [{"binary_id": "a"}, {"binary_id": "b"}],
"signatures": ["() → —"]},
{"name": "GET", "status": "registered", "original": [{"binary_id": "a"}]},
{"name": "LEN", "status": "missing", "original": [{"binary_id": "b"}], "signatures": []}],
"events": [{"name": "ONINIT", "status": "engine_literal", "original": ["a"]}],
"fields": [{"name": "SIZE", "status": "not_found", "original": ["a", "b"], "value_types": ["int"]}]},
{"name": "INSTANCE", "methods": [{"name": "X", "status": "missing", "original": [{"binary_id": "a"}]}]}]}
text = render(tracker)
assert "| VECTOR | 1 / 3 | 2 | 0 | 0 / 1 | 1 / 1 |" in text
assert "`NORMALIZE` () → — (8, BM); `LEN` (BM)" in text # wider presence first
assert "`SIZE` int (8, BM)" in text and "INSTANCE" not in text