topology-authoring
Topology Producers
Developer skill for assistants working in this repository, not an operator skill. It routes to the documents that
own each fact and keeps only the rules and workflow that have no other owner. When you find a fact here and in an
owner document, verify the affected contract at its source and correct stale guidance during authorized maintenance.
Apply AGENTS.md#skill-selection. Review the affected planes and existing design/validation evidence; authoring steps
below do not require reviewers to create a SOW, redesign unrelated planes or query a live Agent. Live verification
recipes apply only when the task includes that operation. A changed validator requires checking the claims it affects.
Owners
Read the owner for the plane you touch; do not work from memory of it.
| Owner | Owns |
|---|---|
| src/plugins.d/FUNCTION_TOPOLOGY_SCHEMA.json | Every required field and closed token (icons, colors, layout, cell types, visibility, projections, arrow, direction, severities, rule classes). Named record definitions are additionalProperties: false; the type registries, evidence, scale_keys, correlation.rules, and the maps under data.tables.actor / .relationship are maps keyed by producer-chosen ids (propertyNames = id); dictionaries, stats, extensions, badge_map, and link_aggregation.metrics are open maps; required_params[] stays open except for optional typed focus metadata. |
| src/plugins.d/FUNCTION_TOPOLOGY_DEVELOPER_GUIDE.md | The payload contract, plane by plane, plus per-producer Shape sections and the aggregator rules a producer relies on. |
| src/plugins.d/FUNCTION_TOPOLOGY_IMPLEMENTATION_SCOPE.md | Migration state per producer, Cloud aggregator and frontend scope, the CTS gate, and design that is not yet in the schema. |
| src/go/pkg/topology/v1 | Go builders and semantic validators (validate.go, validate_notification.go, validate_focus.go, validate_view.go). |
| src/go/plugin/go.d/collector/snmp_topology/ARCHITECTURE.md | SNMP producer internals, where to change what, and its validation commands. |
| src/go/pkg/l2topology/parity/README.md | The L2 parity runbook against the enlinkd oracle. |
| src/go/tools/functions-validation/README.md#validate-topology-v1-fixtures | Validating any topology payload file from the CLI. |
| src/plugins.d/FUNCTION_UI_REFERENCE.md, src/plugins.d/FUNCTION_UI_DEVELOPER_GUIDE.md | Function transport: envelope, v: 3, selections, info responses. |
| docs/npm/topology/ | What operators are told the topology means. Change it when a user-visible meaning changes. |
If the task also changes or reviews the collector that hosts the producer,
.agents/skills/collectors-authoring/SKILL.md routes that work. SNMP profile topology: rows (which OIDs feed the
producer) belong to collectors-snmp-profiles; this skill starts where those rows have become observations.
Producers
| Function | Producer | Tests |
|---|---|---|
| topology:network-connections | src/collectors/network-viewer.plugin/network-viewer-topology.c (shared renderer; Windows main in network-viewer-windows.c, container rules in network-viewer-topology-containers.c) | src/collectors/network-viewer.plugin/tests/validate_topology_payload.py, validate_topology_container_fixtures.py, the C unit tests test_network_viewer_topology_containers.c and test_network_viewer_apps_lookup_client.c, and fixtures under tests/fixtures/topology/ (all under src/collectors/network-viewer.plugin/tests/) |
| topology:streaming | src/web/api/functions/function-topology-streaming.c (path facts from src/streaming/stream-path.c) | no producer-level test; src/go/tools/functions-validation/fixtures/topology-v1/streaming.json is a hand-authored schema sample that does not mirror the emitted shape |
| topology:snmp | src/go/plugin/go.d/collector/snmp_topology/ (render in internal/topologyv1) | topology_scenario_golden_test.go, internal/topologyv1/golden_test.go, see src/go/plugin/go.d/collector/snmp_topology/ARCHITECTURE.md#validation-checklist |
| topology:vsphere | src/go/plugin/go.d/collector/vsphere/func_topology*.go | func_topology_test.go |
| topology:cato_networks | src/go/plugin/go.d/collector/cato_networks/topology.go, catofunc/topology.go | topology_test.go |
| topology:tracing | src/crates/otel-service-map/ (payload.rs, topology_template.json, function.rs), served by the otel-plugin ingestor | the crate's tests (cargo test -p otel-service-map), including the golden test that keeps src/go/tools/functions-validation/fixtures/topology-v1/tracing.json current |
All six emit netdata.topology.v1; no producer still emits a pre-v1 payload. Remaining per-producer refinements
are tracked in src/plugins.d/FUNCTION_TOPOLOGY_IMPLEMENTATION_SCOPE.md#current-migration-inventory. Cross-producer
fixtures live in src/go/tools/functions-validation/fixtures/topology-v1/ (none for topology:cato_networks); the
Cloud aggregator itself is not in this repository.
What The Code Enforces
Use this map to locate enforcement and its known limits. Before relying on a claim affected by the task, verify it in
the current schema, validator and relevant tests. Do not re-audit unrelated behavior or infer enforcement from this
summary alone; distinguish intended contract from what the checked implementation actually rejects.
- JSON Schema (
FUNCTION_TOPOLOGY_SCHEMA.json): structure, required fields, closed tokens, unknown properties. A
violation is an error from any validator that loads the schema. It does not check cross-references or row counts.
- Go semantic vali
