ontoref-code/templates/ontology/connections.ncl
2026-07-10 01:44:59 +01:00

27 lines
1 KiB
Text

# .ontoref/ontology/connections.ncl — Project: {{ project_name }}
# Declares cross-project relationships for federation and impact analysis.
# Used by: GET /graph/impact?include_external=true, describe impact --include-external
#
# Each connection:
# project — slug registered in the shared daemon
# node — ontology node id in that project (for impact graph traversal)
# via — transport: "http" | "local" | "nats"
#
# Directions:
# upstream — projects this one depends on / consumes from
# downstream — projects that depend on / consume this one
# peers — symmetric relationships (shared concerns, sibling services)
let s = import "reflection/schemas/connections.ncl" in
{
upstream = [
# { project = "platform-core", node = "api-contract", via = "http" },
],
downstream = [
# { project = "consumer-app", node = "integration-layer", via = "http" },
],
peers = [
# { project = "sibling-service", node = "shared-domain", via = "local" },
],
} | s.Connections