wip: preserve local engine and agent workflow changes before ganjihong refactor integration

This commit is contained in:
2026-09-09 17:08:24 +08:00
parent a5c3ec1f36
commit 387b99e255
112 changed files with 3543 additions and 12177 deletions
+12
View File
@@ -152,6 +152,18 @@ def bind_candidate_selectors(cdsl: dict[str, Any]) -> tuple[dict[str, Any], list
for placeholder in targets:
records = prefix_records(placeholder.get("binding_feature_id"), placeholder.get("owner_feature_id"))
output_role = str(placeholder.get("output_role") or "").strip()
intent = placeholder.get("selector_intent")
if (
isinstance(intent, dict)
and intent.get("query_family") != "GEOMETRIC"
and not output_role
):
# Prefix rebuilding is retained as a diagnostic adapter.
# It must not turn an unproven FeatureScript provenance
# query into a geometry-scored stable selector.
raise ValueError(
f"{feature['id']}: selector_kernel_history_missing after prefix rebuild"
)
if output_role:
# Builder output roles are not geometry placeholders. They
# remain in the bound CDSL so runtime can resolve the