fix: keep validation contracts truthful for new control regions

This commit is contained in:
lda
2026-09-04 08:04:47 +07:00 Verified
parent b073407441
commit 7a5635b1a2
2 changed files with 31 additions and 1 deletions
+7 -1
View File
@@ -272,7 +272,13 @@ async def test_snapshotless_remote_node_upgrades_to_real_capability_contract() -
replacement = graph.use(capability, id="replacement", input=[], output=[])
graph.connect(replacement, "ok", "done")
assert graph.validate_local().ok is True
# A disconnected replacement has no derivable control region; new
# validation reports it as unreachable rather than silently accepting it.
report = graph.validate_local()
assert any(
issue.code == "unreachable_node" and issue.path == "nodes[replacement]"
for issue in report.errors
)
assert graph.seeded_node_defs["app.default.remote"].input_schema.properties == {
"query": {"type": "string"}
}