Skip to content

fix(docs): report a missing node type registry instead of failing as a defect - #2

Merged
tom-sapletta-com merged 1 commit into
mainfrom
fix/node-types-registry-optional
Aug 8, 2026
Merged

fix(docs): report a missing node type registry instead of failing as a defect#2
tom-sapletta-com merged 1 commit into
mainfrom
fix/node-types-registry-optional

Conversation

@tom-sapletta-com

Copy link
Copy Markdown
Contributor

scripts/check_node_types.py reads the node type registry from the sibling urirun checkout:

sys.path.insert(0, str(MONOREPO / "urirun" / "adapters" / "python"))
from urirun.host.node_types import ...

That path exists only in the monorepo layout. An isolated clone of this repository — a CI checkout on its own — raised ModuleNotFoundError: No module named 'urirun' and failed make test for a reason that has nothing to do with the documentation being checked.

Change

The missing registry is detected and the check skips with a stated reason, so an environment limit is reported as one rather than masquerading as a documentation defect. Where the registry must be present, DOCS_REQUIRE_NODE_TYPE_REGISTRY=1 makes its absence a failure.

Why this matters beyond this repository

subactor/repair-agent had added a hardcoded exemption swallowing exactly this failure string during its full validation stage — turning a real failing test into a pass for every repository it validates, forever. That is a safety gate weakened to work around a defect that lives here. With the cause fixed, the exemption can be removed.

Verification

environment result
monorepo checkout full check runs — 10 node types, 3 aliases, 0 errors
isolated copy SKIP: node type registry not found …, make test exits 0
isolated copy, DOCS_REQUIRE_NODE_TYPE_REGISTRY=1 exits 1

🤖 Generated with Claude Code

…a defect

check_node_types.py reads the node type registry from the sibling urirun
checkout via MONOREPO/urirun/adapters/python. That path exists only in the
monorepo layout, so an isolated clone of this repository - a CI checkout on its
own - raised ModuleNotFoundError: No module named 'urirun' and failed `make
test` for a reason unrelated to the documentation being checked.

It now detects the missing registry and skips with a stated reason. An
environment limit is reported as one instead of masquerading as a documentation
defect. Where the registry must be present, set
DOCS_REQUIRE_NODE_TYPE_REGISTRY=1 and its absence fails.

This matters beyond this repository: subactor/repair-agent had added a hardcoded
exemption swallowing exactly this failure string during its full validation
stage, which turned a real failing test into a pass for every repository it
validates. With the cause fixed here, that exemption can be removed.

Verified: monorepo checkout runs the full check, 10 node types and 0 errors;
an isolated copy skips and `make test` exits 0; with
DOCS_REQUIRE_NODE_TYPE_REGISTRY=1 the isolated copy exits 1.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@tom-sapletta-com
tom-sapletta-com merged commit f1640ea into main Aug 8, 2026
4 checks passed
@tom-sapletta-com
tom-sapletta-com deleted the fix/node-types-registry-optional branch August 8, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant