test(opcua-acl): #1079 guard: the node manager is the only wirer of the authorizer's ImportedConditionClassifier / MappedNamespacePredicate

The #1033 flag-off revalidation fast path (IsLocalNodeUngated) answers a local Raw/UNS item allow without the
authorizer, sound only while those two delegates are the node manager's own ClassifyImportedCondition /
IsProjectedDescendant. Source-scan guard over src/**/*.cs (RoleAuthorityGuardTests idiom): any assignment outside
OtOpcUaNodeManager.cs, or one there to another delegate, fails; non-vacuity counts the real wiring sites; a
falsification test feeds offending snippets. Mutation-checked against the real tree (a rogue assignment in
DataPlaneAuthorizer.cs fails it).

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Joseph Doherty
2026-12-03 16:34:36 -05:00
parent fe4bbbe256
commit dface0441e
3 changed files with 152 additions and 2 deletions
@@ -6313,7 +6313,8 @@ public sealed partial class OtOpcUaNodeManager : CustomNodeManager2, INodeManage
/// (<see cref="IsProjectedDescendant"/>) only [2]/[3], and <c>AuthorizeIfRequired</c> then takes the
/// <c>localBypass</c>. The one wiring where the full path differs — a mapped-subject resolver with no projected
/// predicate, which asks the resolver about every node and denies the local ones it cannot place — is excluded, so
/// that configuration keeps its existing verdict.
/// that configuration keeps its existing verdict. Sound only because this manager is the sole wirer of both delegates,
/// to its own methods — pinned by <c>AuthorizerClassifierWiringGuardTests</c> (#1079).
/// </summary>
/// <remarks>
/// Measured (10k flag-off items): a pass went from ~6.5–7 ms and ~1.4 MB (the pass-local memo's tuple keys and