fix(tracker): sanitize the Behaviour factory misparse before 6.1 mapping
Pinokio's 6.1 factory parse attributes every type to CMC_Behaviour; the constructor-runner walk ran before that known failure was discarded and gave INTEGER the BEHAVIOUR runner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f8178a08f3
commit
a3a572c9db
+4
-4
@@ -218,14 +218,14 @@ def script_owners(snap: Snapshot, owners) -> dict[str, tuple[str, str]]:
|
||||
if t.get("type_id") in by_type_id:
|
||||
mappings[name] = (by_type_id[t["type_id"]], "runner_factory")
|
||||
continue
|
||||
runner_owner = _constructor_runner(name, t.get("cpp_class"), class_runner, bases, known_classes)
|
||||
if runner_owner:
|
||||
mappings[name] = (runner_owner, "class_constructor")
|
||||
continue
|
||||
owner, mapping = t.get("cpp_class"), "explicit"
|
||||
# Known extractor failure: unrelated factory entries all mapped to Behaviour.
|
||||
if owner == "CMC_Behaviour" and name != "BEHAVIOUR":
|
||||
owner = None
|
||||
runner_owner = _constructor_runner(name, owner, class_runner, bases, known_classes)
|
||||
if runner_owner:
|
||||
mappings[name] = (runner_owner, "class_constructor")
|
||||
continue
|
||||
if not owner:
|
||||
candidate = [o for o in owners if owner_name(o) == name]
|
||||
owner, mapping = (candidate[0] if len(candidate) == 1 else None), "inferred"
|
||||
|
||||
Reference in New Issue
Block a user