From fa4f0651049633aa4cfec9c409f2c525605ee389 Mon Sep 17 00:00:00 2001 From: znetsixe Date: Tue, 19 May 2026 15:59:06 +0200 Subject: [PATCH] =?UTF-8?q?fix(CONTRACT):=20add=20child.register=20row=20?= =?UTF-8?q?=E2=80=94=20was=20in=20registry=20but=20not=20the=20table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The commands registry has `child.register` (with `registerChild` alias); CONTRACT.md mentioned it only in the Port 2 prose. contract-verify required it in the canonical Inputs table. Co-Authored-By: Claude Opus 4.7 (1M context) --- CONTRACT.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRACT.md b/CONTRACT.md index f752601..4148142 100644 --- a/CONTRACT.md +++ b/CONTRACT.md @@ -13,6 +13,7 @@ Hand-maintained for Phase 6; the `## Inputs` table is generated from | `data.flow` | `input_q` | `{ value: number, unit: string }` | Converts to m³/h and pushes into `flow.manual.atequipment`. Blends with measured-child flow in `getEffectiveFlow()`. | | `set.mode` | `setMode` | string | Delegated to `source.setMode()` if defined. Reserved for future use. | | `set.model-prediction` | `model_prediction` | numeric | Delegated to `source.setModelPrediction()` if defined. Reserved for future use. | +| `child.register` | `registerChild` | `string` — the child node's Node-RED id | Resolves the child via `RED.nodes.getNode` and registers it through `childRegistrationUtils` at the supplied `msg.positionVsParent`. | Aliases log a one-time deprecation warning the first time they fire.