Review 2026-12-02 W1.4: one NodeId-segment name authority + script existence gate #978

Closed
opened 2026-12-02 16:06:17 -05:00 by dohertj2 · 1 comment
Owner

From the 2026-12-02 full code review (master 708a4889c). Plan: docs/superpowers/plans/2026-12-02-review-remediation.md §W1.4. Summary: docs/reviews/2026-12-02/00-SUMMARY.md.

Findings

  • C-1 (High) VirtualTag name is never validated as a NodeId segment; an invalid one breaks the apply on every node — docs/reviews/2026-12-02/03-configuration.md
  • R-5 (Medium) One VirtualTag with an illegal name crashes VirtualTagHostActor on every apply; nothing re-applies — docs/reviews/2026-12-02/01-runtime.md
  • C-4 (Medium) DisplayNameOverride is never checked as a NodeId segment; an invalid override drops the UNS variable silently — docs/reviews/2026-12-02/03-configuration.md
  • C-7 (Low) UnsSegment accepts a trailing newline — docs/reviews/2026-12-02/03-configuration.md
  • C-2 (High) An in-use script can be deleted, and the deploy gate does not check script existence for VirtualTags or ScriptedAlarms — docs/reviews/2026-12-02/03-configuration.md

Notes

C-1 and R-5 are the same defect. Single V3NodeIds.ValidateSegment used by modal, CSV import and DraftValidator.

Each finding in the slice report carries file:line, failure scenario, suggested fix and the test to add. Most are from code reading: reproduce in a failing test first; close as not-a-defect with evidence if it doesn't reproduce.

From the 2026-12-02 full code review (master `708a4889c`). Plan: `docs/superpowers/plans/2026-12-02-review-remediation.md` §W1.4. Summary: `docs/reviews/2026-12-02/00-SUMMARY.md`. ## Findings - **C-1** (High) VirtualTag name is never validated as a NodeId segment; an invalid one breaks the apply on every node — `docs/reviews/2026-12-02/03-configuration.md` - **R-5** (Medium) One VirtualTag with an illegal name crashes `VirtualTagHostActor` on every apply; nothing re-applies — `docs/reviews/2026-12-02/01-runtime.md` - **C-4** (Medium) `DisplayNameOverride` is never checked as a NodeId segment; an invalid override drops the UNS variable silently — `docs/reviews/2026-12-02/03-configuration.md` - **C-7** (Low) `UnsSegment` accepts a trailing newline — `docs/reviews/2026-12-02/03-configuration.md` - **C-2** (High) An in-use script can be deleted, and the deploy gate does not check script existence for VirtualTags or ScriptedAlarms — `docs/reviews/2026-12-02/03-configuration.md` ## Notes C-1 and R-5 are the same defect. Single V3NodeIds.ValidateSegment used by modal, CSV import and DraftValidator. Each finding in the slice report carries file:line, failure scenario, suggested fix and the test to add. Most are from code reading: reproduce in a failing test first; close as not-a-defect with evidence if it doesn't reproduce.
dohertj2 added the type:review-findingpriority:p1 labels 2026-12-02 16:06:17 -05:00
Author
Owner

Fixed and pushed to master (origin/master da23fd970; push 708a4889c..da23fd970). See git log --grep '#978'; any remaining deploy gates / follow-ups are tracked as their own issues.

Fixed and pushed to master (origin/master da23fd970; push 708a4889c..da23fd970). See `git log --grep '#978'`; any remaining deploy gates / follow-ups are tracked as their own issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#978