Resolve standard non-transparent redundancy metadata deferred by current server #717

Closed
opened 2026-10-13 12:17:40 -04:00 by dohertj2 · 28 comments
Owner

Current contract and evidence (2026-10-13)

The owner selected Warm with an explicit degraded standby contract, and None for standalone deployments. Ordinary standby tag Reads and subscriptions must degrade; internal acquisition continues. Event subscriptions remain established while new standby alarm events are suppressed, with current retained conditions refreshed on promotion.

Two approved throwaway pinned-SDK 1.5.378.106 loopback probes completed and were independently rerun: standard graph Read/Browse/Translate for Warm and None; event admission/retention/promotion refresh (28 assertions). These prove supported SDK feasibility, not product implementation or CTT/client acceptance. Previously admitted events and Republish survived demotion; exact concurrent/in-flight boundaries and overflow were not verified.

Source audits recommend a per-tag OnSimpleReadValue projection callback and product alarm suppression before SDK field projection. The queue-only spike gate has late overflow/filtered-retain effects and must not be adopted unchanged. All ACL/direct/Server refresh paths need coverage. The owner decision on client-initiated standby ConditionRefresh is pending. Role snapshots have no ordered lease/revision, and current driver/config signals do not establish an existing global readiness contract.

Independent ServiceLevel binding/recovery work is published in #719 / PR #720, awaiting hosted CI; it retains/replays requests but does not synthesize a startup request when no snapshot exists. A newly found DB-less freshness-timer gap is tracked separately by #721.

Conversational architectural design, written spec and implementation plan approvals remain incomplete. No Warm product code/configuration, rollout, external probe, CTT or production-client acceptance has been performed. Keep all #615 gates open. Original finding and required work are preserved below.


Finding

Current docs/Redundancy.md:7 explicitly defers true Server.ServerRedundancy.ServerUriArray. OpcUaApplicationHost.PopulateServerArray populates Server.ServerArray (i=2254); the in-code ServerConfiguration builder does not set a redundancy mode. Source inspection found no initialization of the non-transparent redundancy object/property. A supplied application configuration may differ and must be checked before drawing deployment conclusions.

This is not a live reproduction. The runbook's i=2271 is also wrong: SDK standard constants map it to LocaleIdArray; true ServerUriArray is i=11314. Publishing peer URIs in ServerArray does not prove the standard redundancy object contract.

Standard / scope

OPC Foundation Part 5 §6.3.9 defines ServerUriArray as mandatory on NonTransparentRedundancyType and specifies the supported modes. Current product documentation advertises non-transparent warm/hot redundancy while deferring this property. #615's statement that all code-path blockers are closed therefore needs qualification.

Required work

  • Establish the intended advertised mode and standalone versus configured-peer behavior against current election/health semantics; inspect the pinned SDK 1.5.378.106 APIs before assuming an upgrade is required.
  • Implement or obtain an explicit product scope decision for the correct standard redundancy type/property contract; do not silently downgrade the production-client gate to ServerArray.
  • Add hermetic over-wire tests for HasTypeDefinition, RedundancySupport (i=3709), ServerUriArray (i=11314), correct URI content/order, and standalone/configured cases, preserving security and startup behavior.
  • Update discovery/runbook documentation consistently. Keep G9 real production-client cutover and G8 CTT acceptance separate from hermetic tests.

No production implementation or live call was performed in this audit. Parent #615 remains open pending all original gates.

## Current contract and evidence (2026-10-13) The owner selected Warm with an explicit degraded standby contract, and None for standalone deployments. Ordinary standby tag Reads and subscriptions must degrade; internal acquisition continues. Event subscriptions remain established while new standby alarm events are suppressed, with current retained conditions refreshed on promotion. Two approved throwaway pinned-SDK 1.5.378.106 loopback probes completed and were independently rerun: standard graph Read/Browse/Translate for Warm and None; event admission/retention/promotion refresh (28 assertions). These prove supported SDK feasibility, not product implementation or CTT/client acceptance. Previously admitted events and Republish survived demotion; exact concurrent/in-flight boundaries and overflow were not verified. Source audits recommend a per-tag OnSimpleReadValue projection callback and product alarm suppression before SDK field projection. The queue-only spike gate has late overflow/filtered-retain effects and must not be adopted unchanged. All ACL/direct/Server refresh paths need coverage. The owner decision on client-initiated standby ConditionRefresh is pending. Role snapshots have no ordered lease/revision, and current driver/config signals do not establish an existing global readiness contract. Independent ServiceLevel binding/recovery work is published in #719 / PR #720, awaiting hosted CI; it retains/replays requests but does not synthesize a startup request when no snapshot exists. A newly found DB-less freshness-timer gap is tracked separately by #721. Conversational architectural design, written spec and implementation plan approvals remain incomplete. No Warm product code/configuration, rollout, external probe, CTT or production-client acceptance has been performed. Keep all #615 gates open. Original finding and required work are preserved below. --- ## Finding Current docs/Redundancy.md:7 explicitly defers true Server.ServerRedundancy.ServerUriArray. OpcUaApplicationHost.PopulateServerArray populates Server.ServerArray (i=2254); the in-code ServerConfiguration builder does not set a redundancy mode. Source inspection found no initialization of the non-transparent redundancy object/property. A supplied application configuration may differ and must be checked before drawing deployment conclusions. This is not a live reproduction. The runbook's i=2271 is also wrong: SDK standard constants map it to LocaleIdArray; true ServerUriArray is i=11314. Publishing peer URIs in ServerArray does not prove the standard redundancy object contract. ## Standard / scope [OPC Foundation Part 5 §6.3.9](https://reference.opcfoundation.org/specs/OPC-10000-5/6.3) defines ServerUriArray as mandatory on NonTransparentRedundancyType and specifies the supported modes. Current product documentation advertises non-transparent warm/hot redundancy while deferring this property. #615's statement that all code-path blockers are closed therefore needs qualification. ## Required work - Establish the intended advertised mode and standalone versus configured-peer behavior against current election/health semantics; inspect the pinned SDK 1.5.378.106 APIs before assuming an upgrade is required. - Implement or obtain an explicit product scope decision for the correct standard redundancy type/property contract; do not silently downgrade the production-client gate to ServerArray. - Add hermetic over-wire tests for HasTypeDefinition, RedundancySupport (i=3709), ServerUriArray (i=11314), correct URI content/order, and standalone/configured cases, preserving security and startup behavior. - Update discovery/runbook documentation consistently. Keep G9 real production-client cutover and G8 CTT acceptance separate from hermetic tests. No production implementation or live call was performed in this audit. Parent #615 remains open pending all original gates.
Author
Owner

Read-only SDK feasibility update: pinned 1.5.378.106 package metadata identifies source commit 99044fdbb638087d62f1e16580e9f73bfda364e2. Its APIs expose StandardServer.CreateMainNodeManagerFactory and ConfigurationNodeManager.AddBehaviourToPredefinedNode, allowing construction before node indexing/import. NonTransparentRedundancyState exists; ServerConfiguration has no RedundancySupport setting. The local SDK source checkout is 1.5.377-preview and was not treated as matching implementation proof.

This is preliminary static feasibility, not a proven wire fix. Final IDs, HasTypeDefinition/HasProperty graph, registration and Browse/Read/TranslateBrowsePaths require a bounded hermetic probe; design approval is pending. Warm/Hot mode policy, config-source authority and static versus dynamic peer advertisement remain undecided. ApplicationConfigPath can change the effective self URI; a fix must use the effective configuration, not an options default. Election, actor readiness, write/ack/history gates and G8/G9 live acceptance stay separate.

Read-only SDK feasibility update: pinned 1.5.378.106 package metadata identifies source commit 99044fdbb638087d62f1e16580e9f73bfda364e2. Its APIs expose StandardServer.CreateMainNodeManagerFactory and ConfigurationNodeManager.AddBehaviourToPredefinedNode, allowing construction before node indexing/import. NonTransparentRedundancyState exists; ServerConfiguration has no RedundancySupport setting. The local SDK source checkout is 1.5.377-preview and was not treated as matching implementation proof. This is preliminary static feasibility, not a proven wire fix. Final IDs, HasTypeDefinition/HasProperty graph, registration and Browse/Read/TranslateBrowsePaths require a bounded hermetic probe; design approval is pending. Warm/Hot mode policy, config-source authority and static versus dynamic peer advertisement remain undecided. ApplicationConfigPath can change the effective self URI; a fix must use the effective configuration, not an options default. Election, actor readiness, write/ack/history gates and G8/G9 live acceptance stay separate.
Author
Owner

Approved hermetic spike completed and independently rerun by root.

Pinned SDK 1.5.378.106 supports the correct startup-static non-transparent metadata graph through StandardServer.CreateMainNodeManagerFactory and ConfigurationNodeManager.AddBehaviourToPredefinedNode, without an upgrade. Real loopback client Read/Browse/Translate passed for synthetic Warm and standalone None. Root rerun exited 0 in 2.08 seconds; actual listeners were exclusively 127.0.0.1 and both ports were absent after cleanup.

Warm: object 2296 has type 2039, support 3709 = 2, and read-only String[] ServerUriArray 11314 with effective self URI then synthetic partner. None: support 0, type 2034, no manufactured ServerUriArray. SDK later visits a passive predefined 11314; that visit must resolve to the same constructed property instance before Core import to avoid a null wire value.

Recommend the supported pre-registration seam for a separately approved production design. The fixture is throwaway only; no production code/configuration, actor behavior, external endpoints or dependency changes. Advertised mode policy remains undecided. CTT, real production-client acceptance, election/readiness and dynamic membership remain unproven. #717 and #615 remain open; this resolves only SDK feasibility.

Approved hermetic spike completed and independently rerun by root. Pinned SDK 1.5.378.106 supports the correct startup-static non-transparent metadata graph through StandardServer.CreateMainNodeManagerFactory and ConfigurationNodeManager.AddBehaviourToPredefinedNode, without an upgrade. Real loopback client Read/Browse/Translate passed for synthetic Warm and standalone None. Root rerun exited 0 in 2.08 seconds; actual listeners were exclusively 127.0.0.1 and both ports were absent after cleanup. Warm: object 2296 has type 2039, support 3709 = 2, and read-only String[] ServerUriArray 11314 with effective self URI then synthetic partner. None: support 0, type 2034, no manufactured ServerUriArray. SDK later visits a passive predefined 11314; that visit must resolve to the same constructed property instance before Core import to avoid a null wire value. Recommend the supported pre-registration seam for a separately approved production design. The fixture is throwaway only; no production code/configuration, actor behavior, external endpoints or dependency changes. Advertised mode policy remains undecided. CTT, real production-client acceptance, election/readiness and dynamic membership remain unproven. #717 and #615 remain open; this resolves only SDK feasibility.
Author
Owner

Read-only policy audit after the successful spike identified remaining design decisions, without choosing or implementing a production mode.

DriverHostActor initializes every local driver and sends its desired subscriptions regardless of redundancy role (lines 3658–3693). Secondary read/monitoring and alarm evaluation remain active; existing device-write, native-ack and HistoryUpdate Primary gates deliberately differ by startup/operation. ServiceLevelCalculator uses health basis 240 plus 10 Primary bonus; publication inputs do not directly establish driver-subscription readiness or configuration revision.

Current docs/Redundancy.md claims both Warm/Hot, defers true ServerUriArray and incorrectly describes an SDK upgrade as necessary. Its generic standby/no-device-contact, ungated-ack and exactly-once wording needs reconciliation with actual acquisition, native-ack gating and documented at-least-once failover. These belong in #717's consistent discovery/operational-contract documentation; #716 remains the distinct obsolete runbook repair.

Official OPC Foundation Part 4 §6.6.2.4 describes Hot parallel acquisition and client requests to the highest-ServiceLevel server; Warm backup functionality and ServiceLevel differ. Continuous acquisition alone does not establish full Hot acceptance. https://reference.opcfoundation.org/specs/OPC-10000-4/6.6.2.4

Owner clarification requested for intended advertised contract. Configuration authority, XML precedence, static/dynamic peer identity and startup readiness also need an approved production design. Preserve current mutation/election policies; the spike does not authorize their modification or close CTT/production-client gates.

Read-only policy audit after the successful spike identified remaining design decisions, without choosing or implementing a production mode. DriverHostActor initializes every local driver and sends its desired subscriptions regardless of redundancy role (lines 3658–3693). Secondary read/monitoring and alarm evaluation remain active; existing device-write, native-ack and HistoryUpdate Primary gates deliberately differ by startup/operation. ServiceLevelCalculator uses health basis 240 plus 10 Primary bonus; publication inputs do not directly establish driver-subscription readiness or configuration revision. Current docs/Redundancy.md claims both Warm/Hot, defers true ServerUriArray and incorrectly describes an SDK upgrade as necessary. Its generic standby/no-device-contact, ungated-ack and exactly-once wording needs reconciliation with actual acquisition, native-ack gating and documented at-least-once failover. These belong in #717's consistent discovery/operational-contract documentation; #716 remains the distinct obsolete runbook repair. Official OPC Foundation Part 4 §6.6.2.4 describes Hot parallel acquisition and client requests to the highest-ServiceLevel server; Warm backup functionality and ServiceLevel differ. Continuous acquisition alone does not establish full Hot acceptance. https://reference.opcfoundation.org/specs/OPC-10000-4/6.6.2.4 Owner clarification requested for intended advertised contract. Configuration authority, XML precedence, static/dynamic peer identity and startup readiness also need an approved production design. Preserve current mutation/election policies; the spike does not authorize their modification or close CTT/production-client gates.
Author
Owner

Owner selected Warm with an explicit degraded standby contract, with standalone None.

This establishes the intended contract, not approval of an implementation design. Official Part 4 §6.6.2.4.5.3 requires inactive-server MonitoredItems to publish appropriate errors instead of actual data; standby ServiceLevel belongs in the degraded 2–199 range (§6.6.2.4.2). Existing live secondary monitoring and healthy 240 cannot simply be relabeled Warm.

https://reference.opcfoundation.org/specs/OPC-10000-4/6.6.2.4.5.3
https://reference.opcfoundation.org/specs/OPC-10000-4/6.6.2.4.2

Scope therefore moves beyond metadata graph to an architectural design for SDK graph, explicit configuration, role/readiness authority, ServiceLevel and client notification behavior while preserving internal acquisition and existing mutation gates. Read-only seam investigation is underway; no production change, retained spike code, new tests, deployment or live call authorized by this contract choice. Written design and implementation-plan review remain required. CTT and production-client cutover gates remain separate.

Owner selected **Warm with an explicit degraded standby contract**, with standalone None. This establishes the intended contract, not approval of an implementation design. Official Part 4 §6.6.2.4.5.3 requires inactive-server MonitoredItems to publish appropriate errors instead of actual data; standby ServiceLevel belongs in the degraded 2–199 range (§6.6.2.4.2). Existing live secondary monitoring and healthy 240 cannot simply be relabeled Warm. https://reference.opcfoundation.org/specs/OPC-10000-4/6.6.2.4.5.3 https://reference.opcfoundation.org/specs/OPC-10000-4/6.6.2.4.2 Scope therefore moves beyond metadata graph to an architectural design for SDK graph, explicit configuration, role/readiness authority, ServiceLevel and client notification behavior while preserving internal acquisition and existing mutation gates. Read-only seam investigation is underway; no production change, retained spike code, new tests, deployment or live call authorized by this contract choice. Written design and implementation-plan review remain required. CTT and production-client cutover gates remain separate.
Author
Owner

Owner further clarified Warm standby: ordinary tag Reads and subscriptions should degrade; internal acquisition continues, with discovery/ServiceLevel diagnostics available. These are contract decisions, not implementation approval.

Exact pinned-SDK read-only event audit found event-only MonitoredItems cannot receive DataValue error notifications via QueueValue, and SetSamplingError only affects create/modify results. Existing built-in StatusChangeNotification paths are timeout/transfer, not a generic per-item standby status. A supported custom event-queue factory exists, but item flushing does not remove notification messages already constructed in the subscription's Publish/Republish buffers. Promotion condition refresh has public seams but needs wire verification.

Consequently event standby indication, pending-message boundaries and promotion refresh require their own explicit contract and approved hermetic proof before the architectural design can claim Warm event behavior. No event probe, product change or new dependency was performed. Keep CTT/client acceptance gates open.

Owner further clarified Warm standby: ordinary tag Reads and subscriptions should degrade; internal acquisition continues, with discovery/ServiceLevel diagnostics available. These are contract decisions, not implementation approval. Exact pinned-SDK read-only event audit found event-only MonitoredItems cannot receive DataValue error notifications via QueueValue, and SetSamplingError only affects create/modify results. Existing built-in StatusChangeNotification paths are timeout/transfer, not a generic per-item standby status. A supported custom event-queue factory exists, but item flushing does not remove notification messages already constructed in the subscription's Publish/Republish buffers. Promotion condition refresh has public seams but needs wire verification. Consequently event standby indication, pending-message boundaries and promotion refresh require their own explicit contract and approved hermetic proof before the architectural design can claim Warm event behavior. No event probe, product change or new dependency was performed. Keep CTT/client acceptance gates open.
Author
Owner

Owner selected the event contract: keep standby event subscriptions established and suppress newly generated alarm events, with ServiceLevel indicating standby and condition refresh on promotion. Existing prepared/in-flight messages and Republish retention remain explicit boundary questions.

A separate throwaway pinned-SDK event probe is approved and running: supported event-queue extension, one loopback server/client, synthetic conditions only, no product actors/configuration/dependencies or external calls. It will observe queue/delivery boundaries and refresh behavior. Root will independently inspect and rerun final stable evidence before reporting feasibility. This contract/probe approval does not approve retaining prototype code or implementing the architectural change; #717 remains open.

Owner selected the event contract: keep standby event subscriptions established and suppress newly generated alarm events, with ServiceLevel indicating standby and condition refresh on promotion. Existing prepared/in-flight messages and Republish retention remain explicit boundary questions. A separate throwaway pinned-SDK event probe is approved and running: supported event-queue extension, one loopback server/client, synthetic conditions only, no product actors/configuration/dependencies or external calls. It will observe queue/delivery boundaries and refresh behavior. Root will independently inspect and rerun final stable evidence before reporting feasibility. This contract/probe approval does not approve retaining prototype code or implementing the architectural change; #717 remains open.
Author
Owner

#717 event spike results

The approved throwaway probe shows that pinned SDK 1.5.378.106 can suppress new standby event queue arrivals while preserving subscriptions and their Reporting mode. Promotion delivered RefreshStart, the current retained synthetic alarm condition, and RefreshEnd on both subscriptions, followed by new alarms.

I independently reviewed and reran the fixture: exit 0 in 5.379 seconds, 28 assertions passed, 25 admissions and 6 drops. Only a loopback server and local client were used; the listener was closed after cleanup.

The boundary is queue admission. Previously admitted active alarms still arrived after demotion, and Republish retained its original message and sequence. The outstanding client Publish task does not prove an exact server-side pending-Publish/demotion race. Concurrent generation, overflow, durable queues, client refresh during standby, and production alarm versus audit/system event categories remain unverified.

This is feasibility evidence only. Production tag quality, role transitions, readiness, actor integration, CTT, and production client acceptance remain open under #717/#615. No product changes or external calls were made.

Evidence: scratch 717-event-spike/RESULTS.md, result.json, run.log, dependency-evidence.json, and independent root-cleanup-evidence.json. Architectural design remains unapproved; #717 stays open.

# #717 event spike results The approved throwaway probe shows that pinned SDK 1.5.378.106 can suppress new standby event queue arrivals while preserving subscriptions and their Reporting mode. Promotion delivered RefreshStart, the current retained synthetic alarm condition, and RefreshEnd on both subscriptions, followed by new alarms. I independently reviewed and reran the fixture: exit 0 in 5.379 seconds, 28 assertions passed, 25 admissions and 6 drops. Only a loopback server and local client were used; the listener was closed after cleanup. The boundary is queue admission. Previously admitted active alarms still arrived after demotion, and Republish retained its original message and sequence. The outstanding client Publish task does not prove an exact server-side pending-Publish/demotion race. Concurrent generation, overflow, durable queues, client refresh during standby, and production alarm versus audit/system event categories remain unverified. This is feasibility evidence only. Production tag quality, role transitions, readiness, actor integration, CTT, and production client acceptance remain open under #717/#615. No product changes or external calls were made. Evidence: scratch `717-event-spike/RESULTS.md`, `result.json`, `run.log`, `dependency-evidence.json`, and independent `root-cleanup-evidence.json`. Architectural design remains unapproved; #717 stays open.
Author
Owner

Read-only follow-up after the approved spikes:

  • Exact pinned SDK Value paths converge on BaseVariableState.ReadValueAttribute. OnSimpleReadValue can return BadNoCommunication without replacing actual stored values, while the active path preserves default index-range/encoding/copy/status behavior. A node-manager Read override alone misses initial sample/change fanout. This remains source evidence, not wire verification.
  • EventFieldList.Handle retains the original typed event target independently of selected EventType fields. That gives an alarm-category seam without forcing client filters. However, queue Enqueue follows SDK overflow and filtered-retain bookkeeping: a full queue can evict its oldest row before the extension drops a standby arrival. The throwaway admission gate is not yet a production suppression design, and its explicit overflow/concurrency limits remain.

Architectural design/spec/plan remain unapproved. Internal acquisition must continue, ordinary tag Reads/subscriptions degrade on standby, diagnostics remain available, and event subscriptions remain established. A client-initiated standby ConditionRefresh policy question is pending with the owner. #717 stays open; no product code changed.

Read-only follow-up after the approved spikes: * Exact pinned SDK Value paths converge on BaseVariableState.ReadValueAttribute. OnSimpleReadValue can return BadNoCommunication without replacing actual stored values, while the active path preserves default index-range/encoding/copy/status behavior. A node-manager Read override alone misses initial sample/change fanout. This remains source evidence, not wire verification. * EventFieldList.Handle retains the original typed event target independently of selected EventType fields. That gives an alarm-category seam without forcing client filters. However, queue Enqueue follows SDK overflow and filtered-retain bookkeeping: a full queue can evict its oldest row before the extension drops a standby arrival. The throwaway admission gate is not yet a production suppression design, and its explicit overflow/concurrency limits remain. Architectural design/spec/plan remain unapproved. Internal acquisition must continue, ordinary tag Reads/subscriptions degrade on standby, diagnostics remain available, and event subscriptions remain established. A client-initiated standby ConditionRefresh policy question is pending with the owner. #717 stays open; no product code changed.
Author
Owner

Read-only follow-up on the selected Warm contract, using the exact cached SDK 1.5.378.106. No product changes, builds, tests, live calls or dependency changes.

Sampling BadNoCommunication does not flush earlier Good data values. The SDK keeps a separate backlog for queue sizes above one; both discard policies can retain older Good entries. Size-one and empty-queue ResendData use the last-value slot instead of the custom queue factory.

A supported MonitoredItem Publish override could project values as they leave an item, but the current production node manager creates standard MonitoredItem instances. Installing a subclass requires preserving node-manager creation, registration, initial reads and restore lifecycle; replacing only the returned item would leave registrations pointing to the original. Root independently checked the exact default manager creation/restore and Publish dispatch source.

Constructed-but-unsent NotificationMessages and Republish are another boundary: Subscription returns its cached message before invoking monitored-item Publish, and Republish returns the cached message directly. No selective ordinary-tag message-cache rewrite/clear extension was established. These are source findings, not demonstrated wire transitions.

#717 remains open. The architecture must explicitly define treatment of pre-demotion queued data, prebuilt first-delivery messages and retransmission before selecting a transition mechanism. The pending client-initiated standby ConditionRefresh choice, readiness policy, approved architectural design and subsequent verification are still required. The earlier metadata/event spikes do not establish these missing guarantees.

Read-only follow-up on the selected Warm contract, using the exact cached SDK 1.5.378.106. No product changes, builds, tests, live calls or dependency changes. Sampling BadNoCommunication does not flush earlier Good data values. The SDK keeps a separate backlog for queue sizes above one; both discard policies can retain older Good entries. Size-one and empty-queue ResendData use the last-value slot instead of the custom queue factory. A supported MonitoredItem Publish override could project values as they leave an item, but the current production node manager creates standard MonitoredItem instances. Installing a subclass requires preserving node-manager creation, registration, initial reads and restore lifecycle; replacing only the returned item would leave registrations pointing to the original. Root independently checked the exact default manager creation/restore and Publish dispatch source. Constructed-but-unsent NotificationMessages and Republish are another boundary: Subscription returns its cached message before invoking monitored-item Publish, and Republish returns the cached message directly. No selective ordinary-tag message-cache rewrite/clear extension was established. These are source findings, not demonstrated wire transitions. #717 remains open. The architecture must explicitly define treatment of pre-demotion queued data, prebuilt first-delivery messages and retransmission before selecting a transition mechanism. The pending client-initiated standby ConditionRefresh choice, readiness policy, approved architectural design and subsequent verification are still required. The earlier metadata/event spikes do not establish these missing guarantees.
Author
Owner

Owner selected the strict first-delivery contract for #717: after demotion, subsequent first-delivery Publish responses must not contain Good ordinary tag values, including previously queued samples and prebuilt batches. Republish history and responses already in flight remain preserved. This is a requirement decision, not approval of an implementation mechanism or a new spike.

The Warm service description supports returning an appropriate monitored-item error from standby Publish responses: https://reference.opcfoundation.org/specs/OPC-10000-4/6.6.2.4.5.3 . Its broad wording does not by itself resolve our precise transition/cache boundaries. The owner decision above does; no CTT/client acceptance is claimed.

Further read-only source exploration found a broader supported service seam: StandardServer.PublishAsync can be overridden around the manager response, and CreateSubscriptionManager exposes a public-interface replacement seam. These may reach prebuilt messages that an item-level projection misses. They are candidates requiring feasibility verification, not proven solutions: returned messages alias SDK cached objects, and rewriting only the wire response can disagree with Republish. Ordinary-tag origin also must survive client-handle changes/deletion/reuse and mixed subscriptions; the current live mapping alone is insufficient proof.

The source audit is continuing. No product code, new runtime probes, SDK upgrades or external calls were introduced. The pending standby client-initiated ConditionRefresh choice and architectural readiness/design/spec/plan reviews remain separate requirements.

Owner selected the strict first-delivery contract for #717: after demotion, subsequent first-delivery Publish responses must not contain Good ordinary tag values, including previously queued samples and prebuilt batches. Republish history and responses already in flight remain preserved. This is a requirement decision, not approval of an implementation mechanism or a new spike. The Warm service description supports returning an appropriate monitored-item error from standby Publish responses: https://reference.opcfoundation.org/specs/OPC-10000-4/6.6.2.4.5.3 . Its broad wording does not by itself resolve our precise transition/cache boundaries. The owner decision above does; no CTT/client acceptance is claimed. Further read-only source exploration found a broader supported service seam: StandardServer.PublishAsync can be overridden around the manager response, and CreateSubscriptionManager exposes a public-interface replacement seam. These may reach prebuilt messages that an item-level projection misses. They are candidates requiring feasibility verification, not proven solutions: returned messages alias SDK cached objects, and rewriting only the wire response can disagree with Republish. Ordinary-tag origin also must survive client-handle changes/deletion/reuse and mixed subscriptions; the current live mapping alone is insufficient proof. The source audit is continuing. No product code, new runtime probes, SDK upgrades or external calls were introduced. The pending standby client-initiated ConditionRefresh choice and architectural readiness/design/spec/plan reviews remain separate requirements.
Author
Owner

Completed the exact-SDK read-only Publish-response audit. The production StandardServer subclass can override PublishAsync and RepublishAsync, reaching successful responses including prebuilt batches. This broadens the feasible integration seams beyond item-level sampling; it does not prove a complete mechanism.

The response aliases SDK retransmission-cache objects, potentially including retained last DataValues. Publication state is released before an outer override resumes, so in-place mutation can race concurrent requests and persistence. Detached projection needs coordinated first-delivery history so later Republish returns the payload actually chosen for that message. Prebuilt messages can be advertised for Republish before ordinary Publish exposes them; first delivery through Republish must therefore be considered, rather than assuming every Republish is already delivered history.

Final notifications contain ClientHandle and Value, not immutable NodeId/server-item provenance. Current item maps alone cannot classify old notifications safely after handle modification, deletion, reuse, or ambiguous handles. A supported custom-item creation/publication path can potentially capture identity before batching, but its real lifecycle integration remains unverified. The broader subscription-manager factory is also not a trivial wrapper: the SDK has a concrete SubscriptionManager cast on expiry.

The owner-selected strict first-delivery contract remains the target. No new-samples-only substitute, product implementation, new runtime probe or CTT acceptance is claimed. A separately approved throwaway provenance spike has been proposed and is pending; it would test the identity prerequisite, not the entire history/concurrency mechanism. Architectural design/spec/plan and readiness decisions remain required.

Completed the exact-SDK read-only Publish-response audit. The production StandardServer subclass can override PublishAsync and RepublishAsync, reaching successful responses including prebuilt batches. This broadens the feasible integration seams beyond item-level sampling; it does not prove a complete mechanism. The response aliases SDK retransmission-cache objects, potentially including retained last DataValues. Publication state is released before an outer override resumes, so in-place mutation can race concurrent requests and persistence. Detached projection needs coordinated first-delivery history so later Republish returns the payload actually chosen for that message. Prebuilt messages can be advertised for Republish before ordinary Publish exposes them; first delivery through Republish must therefore be considered, rather than assuming every Republish is already delivered history. Final notifications contain ClientHandle and Value, not immutable NodeId/server-item provenance. Current item maps alone cannot classify old notifications safely after handle modification, deletion, reuse, or ambiguous handles. A supported custom-item creation/publication path can potentially capture identity before batching, but its real lifecycle integration remains unverified. The broader subscription-manager factory is also not a trivial wrapper: the SDK has a concrete SubscriptionManager cast on expiry. The owner-selected strict first-delivery contract remains the target. No new-samples-only substitute, product implementation, new runtime probe or CTT acceptance is claimed. A separately approved throwaway provenance spike has been proposed and is pending; it would test the identity prerequisite, not the entire history/concurrency mechanism. Architectural design/spec/plan and readiness decisions remain required.
Author
Owner

Approved throwaway provenance spike completed on pinned SDK1.5.378.106. Agent run and root independent unchanged-source run both exited0 and passed66 assertions. Root confirmed the listener on127.0.0.1:63206 was gone afterward (lsof1,empty).

A supported explicit creation-interface override on a subclass of the default data-item manager installs the original custom items while retaining SDK registries, factory validation, initial reads and lifecycle callbacks. A protected per-value Publish override calls base and stamps the newly created original notification objects with immutable node/attribute/category identity. The outer PublishAsync override then resolves those same objects without touching the cache or rewriting responses.

Actual client evidence: identical initial values and shared ClientHandle77 still classify as two different fixture categories; earlier queued samples publish after handle modification to88. The public whole-cache snapshot showed prebuilt sequences4–8 before both items changed to99 and were deleted. Later wire delivery of those sequences retained prior object stamps/categories and historical handle88, even though live item/node registrations were empty. Status-only filtering, queue-size-one, Sampling→Reporting and Disabled controls passed.

Scope limits: diagnostic is a synthetic variable in the custom namespace, not complete SDK namespace-zero routing. Reuse was tested after old batches drained. Normal PublishAvailable lists through the sent index; the public whole-cache snapshot was the prebuilt proof, not a TransferSubscriptions run. No strict demotion projection/history, concurrent Publish/Republish, transfer/restore, aggregate/overflow matrix or CTT proof. Fixture build had14 warnings and0errors; no product files or dependencies changed.

Recommendation: retain this supported provenance route as a candidate for the architectural design, with production taxonomy/lifecycle review. The strict first-delivery and exact Republish-history mechanism still needs separate feasibility verification/approval. #717 remains open; the fixture remains throwaway.

Approved throwaway provenance spike completed on pinned SDK1.5.378.106. Agent run and root independent unchanged-source run both exited0 and passed66 assertions. Root confirmed the listener on127.0.0.1:63206 was gone afterward (lsof1,empty). A supported explicit creation-interface override on a subclass of the default data-item manager installs the original custom items while retaining SDK registries, factory validation, initial reads and lifecycle callbacks. A protected per-value Publish override calls base and stamps the newly created original notification objects with immutable node/attribute/category identity. The outer PublishAsync override then resolves those same objects without touching the cache or rewriting responses. Actual client evidence: identical initial values and shared ClientHandle77 still classify as two different fixture categories; earlier queued samples publish after handle modification to88. The public whole-cache snapshot showed prebuilt sequences4–8 before both items changed to99 and were deleted. Later wire delivery of those sequences retained prior object stamps/categories and historical handle88, even though live item/node registrations were empty. Status-only filtering, queue-size-one, Sampling→Reporting and Disabled controls passed. Scope limits: diagnostic is a synthetic variable in the custom namespace, not complete SDK namespace-zero routing. Reuse was tested after old batches drained. Normal PublishAvailable lists through the sent index; the public whole-cache snapshot was the prebuilt proof, not a TransferSubscriptions run. No strict demotion projection/history, concurrent Publish/Republish, transfer/restore, aggregate/overflow matrix or CTT proof. Fixture build had14 warnings and0errors; no product files or dependencies changed. Recommendation: retain this supported provenance route as a candidate for the architectural design, with production taxonomy/lifecycle review. The strict first-delivery and exact Republish-history mechanism still needs separate feasibility verification/approval. #717 remains open; the fixture remains throwaway.
Author
Owner

Approved throwaway delivery-history spike completed on cached SDK 1.5.378.106. Independent root source review and one cleared-environment loopback run passed: 53 assertions, 16 successful wire responses, 20 provenance stamps and 16 delivery decisions, with endpoint cleanup confirmed. No product edits or external historian calls.

Public Publish/Republish overrides call SDK base first, then weakly associate each original cached message with one detached chosen payload. A short lock synchronizes that first choice with fixture role changes; no lock spans service awaits. Earlier delivered Good history survives standby Republish; queued/prebuilt ordinary values first delivered on standby become BadNoCommunication/null while synthetic diagnostics remain Good. Republish can establish the first choice for an unsent prebuilt message; promotion and concurrent responses preserve the same choice. The pending case observes an incomplete SDK base Publish operation before demotion. Successful acknowledgement still yields SDK BadMessageNotAvailable on later Republish. Original cached payloads remain unchanged, including explicit sacrificial-clone checks.

Limits: scalar synthetic custom-namespace diagnostics only; decoded payload fields, not encoded bytes. The first-choice lock is a fixture boundary after base completion, not proof of transport completion or product-wide demotion. No full namespace-zero taxonomy, canceled/failed-response policy, cache-eviction runtime case, transfer, durable restore, sequence wrap, GC/resource bounds or CTT evidence. Production Warm design, role/readiness coordination and implementation still require review/approval; #717 remains open.

Evidence: outputs/717-delivery-history-spike-results.md; work/717-delivery-history-spike/{Program.cs,agent-result.json,result.json,root-run.log,root-cleanup-evidence.json}. Final source SHA256 fe491d26d71446ef9a8e33e247da07d7f9d69bab702079b937b70972a3247316.

Approved throwaway delivery-history spike completed on cached SDK 1.5.378.106. Independent root source review and one cleared-environment loopback run passed: 53 assertions, 16 successful wire responses, 20 provenance stamps and 16 delivery decisions, with endpoint cleanup confirmed. No product edits or external historian calls. Public Publish/Republish overrides call SDK base first, then weakly associate each original cached message with one detached chosen payload. A short lock synchronizes that first choice with fixture role changes; no lock spans service awaits. Earlier delivered Good history survives standby Republish; queued/prebuilt ordinary values first delivered on standby become BadNoCommunication/null while synthetic diagnostics remain Good. Republish can establish the first choice for an unsent prebuilt message; promotion and concurrent responses preserve the same choice. The pending case observes an incomplete SDK base Publish operation before demotion. Successful acknowledgement still yields SDK BadMessageNotAvailable on later Republish. Original cached payloads remain unchanged, including explicit sacrificial-clone checks. Limits: scalar synthetic custom-namespace diagnostics only; decoded payload fields, not encoded bytes. The first-choice lock is a fixture boundary after base completion, not proof of transport completion or product-wide demotion. No full namespace-zero taxonomy, canceled/failed-response policy, cache-eviction runtime case, transfer, durable restore, sequence wrap, GC/resource bounds or CTT evidence. Production Warm design, role/readiness coordination and implementation still require review/approval; #717 remains open. Evidence: outputs/717-delivery-history-spike-results.md; work/717-delivery-history-spike/{Program.cs,agent-result.json,result.json,root-run.log,root-cleanup-evidence.json}. Final source SHA256 fe491d26d71446ef9a8e33e247da07d7f9d69bab702079b937b70972a3247316.
Author
Owner

Read-only production notification-taxonomy audit completed and root-reviewed against current head 8828e999 and pinned SDK 1.5.378.106.

Ordinary raw/UNS/equipment/virtual Value items use the product CustomNodeManager2 route. That same manager also owns condition children, metadata attributes and legacy alarm bool[2] fallback; _variables membership, manager identity, numeric namespace or ClientHandle alone cannot define ordinary-tag data. Capture declared/creator intent plus actual node identity and AttributeId at item creation. Namespace-zero ServiceLevel/server/discovery diagnostics belong to ConfigurationNodeManager -> DiagnosticsNodeManager -> CustomNodeManager2. A supported main-node-manager factory seam exists, but replacing it is not established as necessary merely to degrade product tags.

Aggregate processed values and size-one/resend use the item's protected per-value Publish path; raw input DataValue identity or a FIFO queue marker alone is incomplete. Restore has a separate factory and prebuilt stored messages require their own provenance treatment. Events/status/keepalive are distinct bodies. No implicit unknown-origin rewrite policy is approved.

This supplements the already passed synthetic provenance/history spikes. No production edits or new runtime probes; #717 remains open for architectural design, complete category/lifecycle coverage and role/readiness coordination. Evidence: work/lmx717-notification-taxonomy-audit.md and work/lmx717-requirements-evidence-matrix.md.

Read-only production notification-taxonomy audit completed and root-reviewed against current head 8828e999 and pinned SDK 1.5.378.106. Ordinary raw/UNS/equipment/virtual Value items use the product CustomNodeManager2 route. That same manager also owns condition children, metadata attributes and legacy alarm bool[2] fallback; `_variables` membership, manager identity, numeric namespace or ClientHandle alone cannot define ordinary-tag data. Capture declared/creator intent plus actual node identity and AttributeId at item creation. Namespace-zero ServiceLevel/server/discovery diagnostics belong to ConfigurationNodeManager -> DiagnosticsNodeManager -> CustomNodeManager2. A supported main-node-manager factory seam exists, but replacing it is not established as necessary merely to degrade product tags. Aggregate processed values and size-one/resend use the item's protected per-value Publish path; raw input DataValue identity or a FIFO queue marker alone is incomplete. Restore has a separate factory and prebuilt stored messages require their own provenance treatment. Events/status/keepalive are distinct bodies. No implicit unknown-origin rewrite policy is approved. This supplements the already passed synthetic provenance/history spikes. No production edits or new runtime probes; #717 remains open for architectural design, complete category/lifecycle coverage and role/readiness coordination. Evidence: work/lmx717-notification-taxonomy-audit.md and work/lmx717-requirements-evidence-matrix.md.
Author
Owner

Read-only exact SDK1.5.378.106/net10 clone-chain follow-up: generated standard notification fields recurse through Utils/CoreUtils.Clone; arrays/matrices/byte strings have recursive paths, but arbitrary custom encodeables depend on their own clone implementations and can shallow-alias or lack a supported path. MonitoredItemNotification.Message/DiagnosticInfo and EventFieldList.Handle/Message helper references are not reset/cloned; SDK GetDataChanges/GetEvents can set Message to the original graph. DiagnosticInfo copy recursion truncates nested InnerDiagnosticInfo beyond MaxInnerDepth5. These are source-derived limits, not new observed runtime failures. The approved53-assertion scalar history spike remains valid for its exercised graph; it does not establish full payload/encoded-history fidelity for these cases. Requirements matrix now calls out mutable arrays/extension bodies/diagnostics/events and helper references for bounded verification before choosing a product clone policy. No runtime runs, product edits, dependency changes or architecture approval; #717 stays open.

Read-only exact SDK1.5.378.106/net10 clone-chain follow-up: generated standard notification fields recurse through Utils/CoreUtils.Clone; arrays/matrices/byte strings have recursive paths, but arbitrary custom encodeables depend on their own clone implementations and can shallow-alias or lack a supported path. MonitoredItemNotification.Message/DiagnosticInfo and EventFieldList.Handle/Message helper references are not reset/cloned; SDK GetDataChanges/GetEvents can set Message to the original graph. DiagnosticInfo copy recursion truncates nested InnerDiagnosticInfo beyond MaxInnerDepth5. These are source-derived limits, not new observed runtime failures. The approved53-assertion scalar history spike remains valid for its exercised graph; it does not establish full payload/encoded-history fidelity for these cases. Requirements matrix now calls out mutable arrays/extension bodies/diagnostics/events and helper references for bounded verification before choosing a product clone policy. No runtime runs, product edits, dependency changes or architecture approval; #717 stays open.
Author
Owner

Docs-only on master 5db01053; product change still blocked by the open design approval. The owner chose Warm with a degraded standby (standby ServiceLevel in 2–199 and degraded tag data), but the Secondary serves live Good data at 240 today, so it can't simply be relabelled Warm. Corrected: docs/Redundancy.md (no SDK upgrade needed — the spike disproved it; records i=3709 reads the SDK default and i=11314 is absent), and .claude/rules/cluster-topology.md + docs/OpcUaServer.md (both wrongly claimed RedundancySupport/ServerUriArray are exposed). A4 / A5b remain unmet.

Docs-only on master 5db01053; product change still blocked by the open design approval. The owner chose Warm with a degraded standby (standby ServiceLevel in 2–199 and degraded tag data), but the Secondary serves live Good data at 240 today, so it can't simply be relabelled Warm. Corrected: docs/Redundancy.md (no SDK upgrade needed — the spike disproved it; records i=3709 reads the SDK default and i=11314 is absent), and .claude/rules/cluster-topology.md + docs/OpcUaServer.md (both wrongly claimed RedundancySupport/ServerUriArray are exposed). A4 / A5b remain unmet.
dohertj2 added the blocked label 2026-11-10 08:41:35 -05:00
Author
Owner

Owner decision 2026-11-11: a client-initiated ConditionRefresh on the Warm standby returns its current retained conditions; only NEW alarm events are suppressed while it is standby. This answers the pending refresh question; the written spec/plan approvals are still open.

Owner decision 2026-11-11: a client-initiated **ConditionRefresh on the Warm standby returns its current retained conditions**; only NEW alarm events are suppressed while it is standby. This answers the pending refresh question; the written spec/plan approvals are still open.
Author
Owner

Draft spec and plan are on master 2be43aa9, awaiting owner approval: docs/plans/2026-11-11-warm-redundancy-717-design.md and docs/plans/2026-11-11-warm-redundancy-717-plan.md. They build on the owner decisions recorded above, including that a standby ConditionRefresh returns retained conditions.

Design:

  • Off by default: a new OpcUa:Redundancy:Mode, Unset/None/Warm.
  • Role snapshots carry a revision stamp, so stale snapshots cannot overwrite the new Primary.
  • ServiceLevel bands put every standby level below every Active level.
  • Standby data degrades to BadNoCommunication while acquisition continues.
  • Alarm suppression happens before SDK event handling, via a stamp/deliver split rather than the queue gate.
  • Transitions are ordered so a high ServiceLevel is never visible over degraded data.

Blockers it found:

  • ScadaBridge: it does not fail over on ServiceLevel, so turning Warm on needs a ScadaBridge change first (to be filed cross-repo on approval).
  • SDK 2.0.1: it changed the hook shapes the 1.5 spikes used. Plan task T0 re-proves them over the wire.

Open owner decisions: standby writes (refuse vs revert), crash failover gap (promote-on-unreachable), the standby status code, scripted-alarm methods on the standby, a Hot migration, and the ServiceLevel values.

**Draft spec and plan are on master `2be43aa9`, awaiting owner approval:** `docs/plans/2026-11-11-warm-redundancy-717-design.md` and `docs/plans/2026-11-11-warm-redundancy-717-plan.md`. They build on the owner decisions recorded above, including that a standby ConditionRefresh returns retained conditions. **Design:** - Off by default: a new `OpcUa:Redundancy:Mode`, `Unset`/`None`/`Warm`. - Role snapshots carry a revision stamp, so stale snapshots cannot overwrite the new Primary. - ServiceLevel bands put every standby level below every Active level. - Standby data degrades to `BadNoCommunication` while acquisition continues. - Alarm suppression happens before SDK event handling, via a stamp/deliver split rather than the queue gate. - Transitions are ordered so a high ServiceLevel is never visible over degraded data. **Blockers it found:** - **ScadaBridge:** it does not fail over on ServiceLevel, so turning Warm on needs a ScadaBridge change first (to be filed cross-repo on approval). - **SDK 2.0.1:** it changed the hook shapes the 1.5 spikes used. Plan task T0 re-proves them over the wire. **Open owner decisions:** standby writes (refuse vs revert), crash failover gap (promote-on-unreachable), the standby status code, scripted-alarm methods on the standby, a `Hot` migration, and the ServiceLevel values.
Author
Owner

Owner decisions 2026-11-13: spec and plan approved (2be43aa9). Answers to design §9:

  1. Standby writes: refuse synchronously with BadInvalidState under Warm only.
  2. Crash-failover gap: yes, promote while the Primary is unreachable, behind OpcUa:Redundancy:PromoteWhilePrimaryUnreachable (default on).
  3. Standby status code: BadOutOfService (re-prove in T0 alongside the SDK 2.0.1 hooks).
  4. Scripted Part 9 methods on the standby: refuse with BadInvalidState under Warm.
  5. ConfigDb Hot: leave the CHECK, rely on the §3 mismatch Error (no migration).
  6. Bands: accepted as drafted (standby 90/50, boot 1).

Cross-repo prerequisite filed as ScadaBridge#138 (ServiceLevel-aware failover); no tier sets Mode=Warm until it is deployed there. Unblocked; implementation (default-off) queued.

Owner decisions 2026-11-13: **spec and plan approved** (`2be43aa9`). Answers to design §9: 1. Standby writes: **refuse synchronously with `BadInvalidState` under Warm only.** 2. Crash-failover gap: **yes, promote while the Primary is unreachable**, behind `OpcUa:Redundancy:PromoteWhilePrimaryUnreachable` (default on). 3. Standby status code: **`BadOutOfService`** (re-prove in T0 alongside the SDK 2.0.1 hooks). 4. Scripted Part 9 methods on the standby: **refuse with `BadInvalidState` under Warm.** 5. ConfigDb `Hot`: **leave the CHECK**, rely on the §3 mismatch Error (no migration). 6. Bands: **accepted as drafted** (standby 90/50, boot 1). Cross-repo prerequisite filed as **ScadaBridge#138** (ServiceLevel-aware failover); no tier sets `Mode=Warm` until it is deployed there. Unblocked; implementation (default-off) queued.
dohertj2 removed the blocked label 2026-11-13 02:33:55 -05:00
Author
Owner

T0 (SDK 2.0.1 hook re-proof) is done, and it stops at the plan's exit rule: (c) and (d) are a no-go as designed. Per the T0 exit ("a 'no' on (c) or (d) re-opens D4's mechanism"), no product code has changed and T1 onward are on hold for an owner go/no-go.

Commits on master (docs only):

  • a42c9d7f: the spec and plan record the 2026-11-13 answers. Writes and Part 9 methods are refused BadInvalidState under Warm. PromoteWhilePrimaryUnreachable defaults to on. The standby code is BadOutOfService. There is no ConfigDb migration, and the bands are as drafted. ScadaBridge#138 is the prerequisite.
  • 2238da65: T0 evidence, docs/plans/evidence/2026-11-13-717-sdk2/RESULTS.md, plus the throwaway spike source.

Spike: a StandardServer with a CustomNodeManager2 (the same base as the product), driven over a loopback session with raw CreateSubscription/Publish/Republish calls on the pinned 2.0.1. 11/11 tests pass. The (c)/(d) tests run twice, once pinning the failure as designed and once pinning the alternative.

Result
a. Metadata graph Pass. IPredefinedNodeSubtypeReplacer.ReplacePredefinedInstanceSubtypeAsync in OnNodeManagerStartedAsync promotes ServerRedundancy to 2039. This is simpler than the planned factory route. Wire results: i=3709=Warm, i=11314=[self, peer] (read-only, resolves through TranslateBrowsePaths), boot ServiceLevel 1. Finding: in None/Unset, an orphan i=11314 is still readable by NodeId (Good, empty array), although browse and TranslateBrowsePaths don't reach it.
b. Read projection Pass. A ReadValueAttribute override (run the base, then BadOutOfService/null) covers Read with IndexRange, the initial sample at queue 1 and 10, the change fan-out, Sampling→Reporting, ResendData and AggregateFilter. Non-ordinary nodes and i=2267 stay Good. Un-projecting delivers the latest stored value without a new driver value. BadOutOfService is re-proven.
c. Provenance Fails as designed. The custom sampled item does install, by re-implementing IMonitoredItemManager on a MonitoredNodeMonitoredItemManager subclass. The planned MonitoredItemFactory hook exists only on AsyncCustomNodeManager. But object-keyed stamps never reach a delivered notification: 0 hits.
d. Publish/Republish choice Fails as designed. In 2.0.1, SentMessageQueue returns CoreUtils.Clone of the cached message on every send, queued send and Republish, and it pools notification payloads on ack/eviction (Initialize() doesn't clear helper fields). A ledger keyed by object never matches, and Good leaks after demotion. Also: Republish of a prebuilt, unsent sequence number returns BadMessageNotAvailable, so "first delivery through Republish" can't happen. The anonymous TransferSubscriptions leg can't run (BadUserAccessDenied).
e. Events Not exercised. The stamp/deliver split is product code, not an SDK hook.

Proposed alternative for the go/no-go:

  1. Key the first-delivery ledger by (SubscriptionId, SequenceNumber), and project the fresh clone on a Standby decision. No cached SDK object is touched. Prune against AvailableSequenceNumbers.
  2. Carry the provenance token on MonitoredItemNotification.Message, a non-encoded helper that the SDK's MemberwiseClone copies. The token is fingerprinted on (ClientHandle, DataValue) so a stale token on a pooled object is rejected.

This passed the queued-then-demote, prebuilt-then-demote and delivered-while-Active-then-Republish legs.

Limits: it re-purposes an SDK helper property (a contract test would pin it); stale-token rejection works by fingerprint, not by construction; and durable restore and same-identity transfer are not exercised. Other options, not spiked: migrate the node manager to AsyncCustomNodeManager (very large, and it doesn't fix cloning), or drop D4's queued/prebuilt guarantee (a D4 decision).

Remaining once there's a go: T1–T10 and T12 (all default-off), then the T13 docker-dev pair live gate, then a tier flip once ScadaBridge#138 is deployed. #717 stays open.

**T0 (SDK 2.0.1 hook re-proof) is done, and it stops at the plan's exit rule: (c) and (d) are a no-go as designed.** Per the T0 exit ("a 'no' on (c) or (d) re-opens D4's mechanism"), no product code has changed and T1 onward are on hold for an owner go/no-go. **Commits on master (docs only):** - `a42c9d7f`: the spec and plan record the 2026-11-13 answers. Writes and Part 9 methods are refused `BadInvalidState` under Warm. `PromoteWhilePrimaryUnreachable` defaults to on. The standby code is `BadOutOfService`. There is no ConfigDb migration, and the bands are as drafted. ScadaBridge#138 is the prerequisite. - `2238da65`: T0 evidence, `docs/plans/evidence/2026-11-13-717-sdk2/RESULTS.md`, plus the throwaway spike source. **Spike:** a `StandardServer` with a `CustomNodeManager2` (the same base as the product), driven over a loopback session with raw `CreateSubscription`/`Publish`/`Republish` calls on the pinned 2.0.1. 11/11 tests pass. The (c)/(d) tests run twice, once pinning the failure as designed and once pinning the alternative. | | Result | |---|---| | a. Metadata graph | **Pass.** `IPredefinedNodeSubtypeReplacer.ReplacePredefinedInstanceSubtypeAsync` in `OnNodeManagerStartedAsync` promotes `ServerRedundancy` to 2039. This is simpler than the planned factory route. Wire results: `i=3709`=Warm, `i=11314`=`[self, peer]` (read-only, resolves through TranslateBrowsePaths), boot ServiceLevel 1. **Finding:** in None/Unset, an orphan `i=11314` is still readable by NodeId (Good, empty array), although browse and TranslateBrowsePaths don't reach it. | | b. Read projection | **Pass.** A `ReadValueAttribute` override (run the base, then `BadOutOfService`/null) covers Read with IndexRange, the initial sample at queue 1 and 10, the change fan-out, Sampling→Reporting, `ResendData` and AggregateFilter. Non-ordinary nodes and `i=2267` stay Good. Un-projecting delivers the latest stored value without a new driver value. `BadOutOfService` is re-proven. | | c. Provenance | **Fails as designed.** The custom sampled item does install, by re-implementing `IMonitoredItemManager` on a `MonitoredNodeMonitoredItemManager` subclass. The planned `MonitoredItemFactory` hook exists only on `AsyncCustomNodeManager`. But object-keyed stamps never reach a delivered notification: 0 hits. | | d. Publish/Republish choice | **Fails as designed.** In 2.0.1, `SentMessageQueue` returns `CoreUtils.Clone` of the cached message on every send, queued send and Republish, and it pools notification payloads on ack/eviction (`Initialize()` doesn't clear helper fields). A ledger keyed by object never matches, and Good leaks after demotion. Also: Republish of a prebuilt, unsent sequence number returns `BadMessageNotAvailable`, so "first delivery through Republish" can't happen. The anonymous TransferSubscriptions leg can't run (`BadUserAccessDenied`). | | e. Events | Not exercised. The stamp/deliver split is product code, not an SDK hook. | **Proposed alternative for the go/no-go:** 1. Key the first-delivery ledger by `(SubscriptionId, SequenceNumber)`, and project the fresh clone on a Standby decision. No cached SDK object is touched. Prune against `AvailableSequenceNumbers`. 2. Carry the provenance token on `MonitoredItemNotification.Message`, a non-encoded helper that the SDK's `MemberwiseClone` copies. The token is fingerprinted on `(ClientHandle, DataValue)` so a stale token on a pooled object is rejected. This passed the queued-then-demote, prebuilt-then-demote and delivered-while-Active-then-Republish legs. Limits: it re-purposes an SDK helper property (a contract test would pin it); stale-token rejection works by fingerprint, not by construction; and durable restore and same-identity transfer are not exercised. Other options, not spiked: migrate the node manager to `AsyncCustomNodeManager` (very large, and it doesn't fix cloning), or drop D4's queued/prebuilt guarantee (a D4 decision). **Remaining once there's a go:** T1–T10 and T12 (all default-off), then the T13 docker-dev pair live gate, then a tier flip once ScadaBridge#138 is deployed. #717 stays open.
Author
Owner

Owner decision 2026-11-13 on the T0 result (comment 12551): adopt the proven alternative. The per-message decision record is keyed by (subscription id, sequence number). The ordinary-tag marker goes on an SDK-copied notification field the client never receives, validated by client handle and value. Pin the SDK-field reuse with a regression test. Cover transfer and durable restore in the T13 docker-dev pair gate. Continue T1–T12, default-off.

Owner decision 2026-11-13 on the T0 result (comment 12551): **adopt the proven alternative.** The per-message decision record is keyed by (subscription id, sequence number). The ordinary-tag marker goes on an SDK-copied notification field the client never receives, validated by client handle and value. Pin the SDK-field reuse with a regression test. Cover transfer and durable restore in the T13 docker-dev pair gate. Continue T1–T12, default-off.
Author
Owner

T1–T10 and T12 are implemented on master, default-off. This follows the owner's 2026-11-13 decision to adopt the T0 alternative. T13 has not run. The issue stays open until a tier proves it.

Commits (all on master):

  • 8667ce58: spec §3/§4.5/§4.6/§10 and plan T0/T2/T7/T13 now describe the adopted mechanism. The T0 record is unchanged.
  • 7829b937: feat, T1–T10.
  • f817c77e: more wire tests, docs, and the T13 overlay docker-dev/docker-compose.warm.yml.

What is implemented:

  • OpcUa:Redundancy:Mode = Unset (default) / None / Warm. Hot and unknown values fail start. Warm needs at least one distinct peer, the node's own effective URI must not be listed as a peer (an ApplicationConfigPath XML load counts), and the node needs the driver role. Each start logs a boot banner line.
  • Metadata (OnNodeManagerStartedAsync, using IPredefinedNodeSubtypeReplacer):
    • Warm: NonTransparentRedundancyType, a read-only ServerUriArray [self, peers], RedundancySupport=Warm, ServiceLevel 1 at boot.
    • None: RedundancySupport=None, and the orphan i=11314 is deleted, so a read by NodeId returns BadNodeIdUnknown.
    • Unset: nothing is touched. The orphan still reads Good [] by NodeId, and docs/Redundancy.md now says so instead of "absent". I hid it under None because the spec says absent there. Under Unset I corrected the doc instead, because Unset must not change anything.
  • Ordered snapshots. RedundancyStateChanged.Revision is (up-number, incarnation tick, sequence). Akka keeps Member.UpNumber internal, so it is read by reflection, and a test pins that. Under Warm, OpcUaPublishActor and DriverHostActor drop older revisions. An unrevisioned snapshot never makes a node Active.
  • Verdict and bands. WarmRoleAuthority decides Active: both the node's own membership view and the accepted snapshot must name it. PromoteWhilePrimaryUnreachable defaults to on. ServiceLevelCalculator.ComputeWarm gives Standby 90/50 and Active 250/200/100.
  • Transitions. IStandbyProjection with DeferredStandbyProjection, which replays the latest state when it binds. Steps run in the §4.7 order: on promotion the Active level is published last and retried if it fails; on demotion the Standby level is published first.
  • Standby behaviour:
    • EquipmentVariableState reads, samples, ResendData and aggregate input are projected to BadOutOfService/null.
    • Writes and Part 9 methods are refused with BadInvalidState after authorization. This covers scripted conditions and native acks.
    • The alarm stamp/deliver split: the event is stamped, but delivery is suppressed.
    • Promotion runs ConditionRefresh2Async on every live event item.
  • D4 (strict first delivery):
    • OrdinaryTagMonitoredItem is installed by re-implementing IMonitoredItemManager, under Warm only. It sets an OrdinaryTagMarker(ClientHandle, DataValue) on MonitoredItemNotification.Message.
    • PublishAsync/RepublishAsync apply a FirstDeliveryRecord keyed by (sub, seq). It is pruned by AvailableSequenceNumbers and bounded.
    • A Standby decision rewrites only the SDK's fresh clone. The cached copy is never mutated.
  • T10: the deploy-time RedundancyMode cross-check (Hot counts as a mismatch) and the six instruments.
  • T11: companion filed as #907 (blocked, cross-repo) against ScadaBridge#138.

Tests (Release build, 0 warnings):

Project Result
OpcUaServer.Tests 1313 passed, 1 skipped
ControlPlane.Tests 457 passed
Runtime.Tests 1056 passed, 3 skipped
Host.Tests 288 passed
OpcUaServer.IntegrationTests 341 passed, 38 skipped (live gates); the Warm wire class is now 23/23
Host.IntegrationTests 350 passed, 2 skipped (after the rebase on #906)

Default-off is pinned twice: Unset_is_todays_server_exactly over the wire (SDK-default i=3709, the orphan, ServerRedundancyType, boot SL 0, Good data, no Warm hooks) and Unset_never_drives_the_projection_and_keeps_todays_levels in the actor. The SDK-field regression pin is Sdk_contract_the_marker_survives_the_delivery_clone_and_is_never_encoded. It checks that CoreUtils.Clone copies the helper and that the encoded bytes match an unmarked message's.

Mutations (13, all killed):

Area Mutation Tests that failed
Revision ordering gate accepts older revisions gate test, actor An_older_revision_after_a_newer_one_is_dropped
Revision ordering actor ignores the gate's verdict the same actor test
Alarm suppression suppression removed Standby_suppresses_… (wire)
Transition order Active level published first 5 actor tests, incl. the step-order/invariant test
Transition order demotion projects before the Standby level 3 actor tests
(sub, seq) record record ignored Timing3 (wire) + 2 unit
(sub, seq) record decision ignored at Publish Timing1 + Timing2
(sub, seq) record marker not set Timing1 + Timing2
(sub, seq) record marker not validated stale-marker unit test
Refusals write refusal removed killed
Refusals scripted-method refusal removed killed
Refusals native-ack refusal removed killed
Read projection projection removed killed

Timing1–3 are the three T0 demotion timings: samples queued in the item with a handle change; a message prebuilt before demotion; Good delivered while Active, then Republish and ack. Against 2.0.1 the prebuilt-unsent Republish returns BadMessageNotAvailable, as T0 found.

T13: not run, left as the next step. The only OtOpcUa docker-dev rig on this Mac carries deployments from other live gates (MAIN has 53 driver instances; latest deployment gateF-4, 2026-11-11). Running T13 there would mean rebuilding the shared otopcua-host:dev image and recreating central-1/2 in Warm, which reconnects their drivers to shared fixtures. A separate rig would need a full image build plus an authored configuration. Neither fits "without disturbing anything shared". Durable restore is moot on the product, because durable subscriptions are not enabled (the SDK default is off). The transfer leg (L11) needs a same-identity UserName session pair on the rig.

Deferred test depth (recorded in the plan's status section):

  • the real 2-node handover test and the "removed node cannot rejoin" pin;
  • the DataEncoding read;
  • a monitored item deleted or reused between queue and publish, and the clone matrix;
  • an ACL-stood-down item during a transition;
  • per-counter MeterListener tests beyond mode_mismatch.

https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi

**T1–T10 and T12 are implemented on `master`, default-off.** This follows the owner's 2026-11-13 decision to adopt the T0 alternative. T13 has not run. The issue stays open until a tier proves it. **Commits (all on master):** - `8667ce58`: spec §3/§4.5/§4.6/§10 and plan T0/T2/T7/T13 now describe the adopted mechanism. The T0 record is unchanged. - `7829b937`: feat, T1–T10. - `f817c77e`: more wire tests, docs, and the T13 overlay `docker-dev/docker-compose.warm.yml`. **What is implemented:** - `OpcUa:Redundancy:Mode` = `Unset` (default) / `None` / `Warm`. `Hot` and unknown values fail start. `Warm` needs at least one distinct peer, the node's own **effective** URI must not be listed as a peer (an `ApplicationConfigPath` XML load counts), and the node needs the driver role. Each start logs a boot banner line. - **Metadata** (`OnNodeManagerStartedAsync`, using `IPredefinedNodeSubtypeReplacer`): - `Warm`: `NonTransparentRedundancyType`, a read-only `ServerUriArray` `[self, peers]`, `RedundancySupport=Warm`, ServiceLevel 1 at boot. - `None`: `RedundancySupport=None`, and the orphan `i=11314` is **deleted**, so a read by NodeId returns `BadNodeIdUnknown`. - `Unset`: nothing is touched. The orphan still reads Good `[]` by NodeId, and `docs/Redundancy.md` now says so instead of "absent". I hid it under `None` because the spec says absent there. Under `Unset` I corrected the doc instead, because `Unset` must not change anything. - **Ordered snapshots.** `RedundancyStateChanged.Revision` is (up-number, incarnation tick, sequence). Akka keeps `Member.UpNumber` internal, so it is read by reflection, and a test pins that. Under `Warm`, `OpcUaPublishActor` and `DriverHostActor` drop older revisions. An unrevisioned snapshot never makes a node Active. - **Verdict and bands.** `WarmRoleAuthority` decides Active: both the node's own membership view and the accepted snapshot must name it. `PromoteWhilePrimaryUnreachable` defaults to on. `ServiceLevelCalculator.ComputeWarm` gives Standby 90/50 and Active 250/200/100. - **Transitions.** `IStandbyProjection` with `DeferredStandbyProjection`, which replays the latest state when it binds. Steps run in the §4.7 order: on promotion the Active level is published last and retried if it fails; on demotion the Standby level is published first. - **Standby behaviour:** - `EquipmentVariableState` reads, samples, ResendData and aggregate input are projected to `BadOutOfService`/null. - Writes and Part 9 methods are refused with `BadInvalidState` after authorization. This covers scripted conditions and native acks. - The alarm stamp/deliver split: the event is stamped, but delivery is suppressed. - Promotion runs `ConditionRefresh2Async` on every live event item. - **D4 (strict first delivery):** - `OrdinaryTagMonitoredItem` is installed by re-implementing `IMonitoredItemManager`, under Warm only. It sets an `OrdinaryTagMarker(ClientHandle, DataValue)` on `MonitoredItemNotification.Message`. - `PublishAsync`/`RepublishAsync` apply a `FirstDeliveryRecord` keyed by (sub, seq). It is pruned by `AvailableSequenceNumbers` and bounded. - A Standby decision rewrites only the SDK's fresh clone. The cached copy is never mutated. - **T10:** the deploy-time `RedundancyMode` cross-check (`Hot` counts as a mismatch) and the six instruments. - **T11:** companion filed as #907 (`blocked`, `cross-repo`) against ScadaBridge#138. **Tests (Release build, 0 warnings):** | Project | Result | |---|---| | OpcUaServer.Tests | 1313 passed, 1 skipped | | ControlPlane.Tests | 457 passed | | Runtime.Tests | 1056 passed, 3 skipped | | Host.Tests | 288 passed | | OpcUaServer.IntegrationTests | 341 passed, 38 skipped (live gates); the Warm wire class is now 23/23 | | Host.IntegrationTests | 350 passed, 2 skipped (after the rebase on #906) | Default-off is pinned twice: `Unset_is_todays_server_exactly` over the wire (SDK-default `i=3709`, the orphan, `ServerRedundancyType`, boot SL 0, Good data, no Warm hooks) and `Unset_never_drives_the_projection_and_keeps_todays_levels` in the actor. The SDK-field regression pin is `Sdk_contract_the_marker_survives_the_delivery_clone_and_is_never_encoded`. It checks that `CoreUtils.Clone` copies the helper and that the encoded bytes match an unmarked message's. **Mutations (13, all killed):** | Area | Mutation | Tests that failed | |---|---|---| | Revision ordering | gate accepts older revisions | gate test, actor `An_older_revision_after_a_newer_one_is_dropped` | | Revision ordering | actor ignores the gate's verdict | the same actor test | | Alarm suppression | suppression removed | `Standby_suppresses_…` (wire) | | Transition order | Active level published first | 5 actor tests, incl. the step-order/invariant test | | Transition order | demotion projects before the Standby level | 3 actor tests | | (sub, seq) record | record ignored | Timing3 (wire) + 2 unit | | (sub, seq) record | decision ignored at Publish | Timing1 + Timing2 | | (sub, seq) record | marker not set | Timing1 + Timing2 | | (sub, seq) record | marker not validated | stale-marker unit test | | Refusals | write refusal removed | killed | | Refusals | scripted-method refusal removed | killed | | Refusals | native-ack refusal removed | killed | | Read projection | projection removed | killed | Timing1–3 are the three T0 demotion timings: samples queued in the item with a handle change; a message prebuilt before demotion; Good delivered while Active, then Republish and ack. Against 2.0.1 the prebuilt-unsent Republish returns `BadMessageNotAvailable`, as T0 found. **T13: not run, left as the next step.** The only OtOpcUa docker-dev rig on this Mac carries deployments from other live gates (MAIN has 53 driver instances; latest deployment `gateF-4`, 2026-11-11). Running T13 there would mean rebuilding the shared `otopcua-host:dev` image and recreating central-1/2 in Warm, which reconnects their drivers to shared fixtures. A separate rig would need a full image build plus an authored configuration. Neither fits "without disturbing anything shared". Durable restore is moot on the product, because durable subscriptions are not enabled (the SDK default is off). The transfer leg (L11) needs a same-identity UserName session pair on the rig. **Deferred test depth (recorded in the plan's status section):** - the real 2-node handover test and the "removed node cannot rejoin" pin; - the DataEncoding read; - a monitored item deleted or reused between queue and publish, and the clone matrix; - an ACL-stood-down item during a transition; - per-counter MeterListener tests beyond `mode_mismatch`. https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
Author
Owner

The deferred test coverage is on master as 687256d6. All of it is in-process: no docker, no wonder boxes. Every new test was mutation-checked: I broke the implementation on purpose and confirmed the test failed. 26 mutations, all killed. None of the tests exposed a product bug, so there is no fix commit.

What was added, per deferred item:

  • T3, real 2-node singleton handover: WarmSingletonHandoverTests in ControlPlane.Tests.
    • The test runs a real 2-node cluster with RedundancyStateActor under ClusterSingletonManager on both nodes.
    • The old incarnation's publishes are held back through the broadcast seam. The test then downs that node and lets the singleton hand over.
    • The held publish is delivered to a real Warm OpcUaPublishActor on the surviving node. It is an older revision (lower up-number) but has a higher sequence. The survivor stays Active: no demotion steps, and SL stays 250.
    • The test first checks that the held message is revisioned and names the old node Primary. So it really would demote the survivor if it were accepted.
  • T3, "a removed node cannot rejoin" pin: in the same class.
    • After a node is downed, its cluster extension terminates, but its ActorSystem stays alive. A Join from that same system never brings it back.
    • A new ActorSystem on the same address does rejoin. It comes back as a younger member, with an up-number above the survivor's and a new UID.
  • T6, DataEncoding read: A_DataEncoding_read_and_item_are_projected_… (wire).
    • On the Standby, a Binary or XML encoded read of a structured (EUInformation) tag returns BadOutOfService/null.
    • On a scalar, the base read's own BadDataEncodingUnsupported comes back unchanged; the projection does not mask it.
    • A DefaultXml monitored item gets the projected value while Standby. On promotion it gets the current value read through its own encoding (TypeId i=888, not binary i=889).
  • T7, item deleted between queue and publish: An_item_deleted_between_queue_and_publish_… (wire).
    • The deleted item's queued samples never surface.
    • The sibling item is still first-delivered projected, and Republish returns the same result.
  • T7, item reused: WarmRedundancyPooledWireTests (wire, run in a non-parallel collection).
    • SDK 2.0.1 pools notification payloads process-wide. The client in the same test process draws from that pool too, so the test runs alone.
    • Marked payloads are acked together, which returns them to the pool. Their ClientHandle is then reused by an i=2267 item, and every value of that item stays Good on the Standby.
    • The test first checks that the pool really does hand out a payload that still carries a marker. Without that check the test was vacuous: the marker-validation mutation survived my first version.
    • Positive control: an ordinary-tag item that reuses the handle is projected.
  • T7, payload clone matrix: WarmStandbyCloneMatrixTests (unit). One delivered CoreUtils.Clone carries two DataChangeNotifications (one with DiagnosticInfos), an EventNotificationList and a StatusChangeNotification. The tests check that:
    • only marked values are rewritten;
    • diagnostics, events and status pass through in order;
    • neither the clone nor the cached message is mutated;
    • the result encodes and decodes, and the marker is not on the wire;
    • two clones project to identical bytes;
    • a stale marker rented through the real SDK pool, with the same handle, never validates.
  • T8, ACL-stood-down item on transition: An_ACL_stood_down_item_receives_nothing_… (wire).
    • An item that RevalidateMonitoredItems stood down gets nothing from a demotion or a promotion. QueueCurrentToLiveItems returns 1, not 2.
    • Its permitted sibling gets both values.
    • Once the grant is restored, the next demotion reaches the item again.
  • T10, per-counter metrics: every listener selects by instrument instance (#503), and these tests run in non-parallel collections.
    • WarmRedundancyMetricsTests (Runtime.Tests) covers:
      • warm_transition with direction and reason (agreed, snapshot), and no count on a same-role snapshot;
      • the warm_role gauge going -1, 0, 1, 0;
      • snapshot_rejected at the publish actor, for older_revision and for unrevisioned;
      • DriverHostActor's ordering gate. A stale snapshot is dropped under Warm and counted, and the role view does not move; the Unset control does move. This gate had no actor test before.
    • WarmRedundancyPooledWireTests covers:
      • standby.projected_notifications equals the number rewritten, counts again on Republish, and is 0 while Active;
      • standby.suppressed_alarm_events counts one per withheld transition and nothing once Active.

Mutations (all killed):

Area Mutation
T3 The gate accepts older revisions.
T3 The revision is reduced to (0, 0, seq), so the up-number and incarnation are lost.
T3 pin The Down is skipped (a harness negative control).
T6 DataEncoding reads are not projected.
T6 The promotion queue ignores the item's DataEncoding.
T7 The marker is not validated (the wire test and the unit test each kill it).
T7 The marker is not set.
T7 DiagnosticInfos are dropped.
T7 Event and status payloads are dropped.
T7 The rewrite is done in place.
T7 Only the first DataChangeNotification is rewritten.
T8 Stood-down items are not skipped.
T10 Each of the seven Add calls removed in turn.
T10 The direction tag is inverted.
T10 The role gauge is never set.
T10 The driver-host gate is ignored.

Results: the Release build has 0 warnings.

Project Result
OpcUaServer.Tests 1317 passed, 1 skipped
ControlPlane.Tests 459 passed
Runtime.Tests 1061 passed, 3 skipped
Host.Tests 288 passed
OpcUaServer.IntegrationTests 352 passed, 38 skipped
Host.IntegrationTests 350 passed, 2 skipped

The plan's "Implementation status" section is updated. The live-only legs are still open for T13: durable restore, TransferSubscriptions under one identity, and the rig legs.

https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi

**The deferred test coverage is on `master` as `687256d6`.** All of it is in-process: no docker, no wonder boxes. Every new test was mutation-checked: I broke the implementation on purpose and confirmed the test failed. **26 mutations, all killed.** **None of the tests exposed a product bug**, so there is no fix commit. **What was added, per deferred item:** - **T3, real 2-node singleton handover:** `WarmSingletonHandoverTests` in ControlPlane.Tests. - The test runs a real 2-node cluster with `RedundancyStateActor` under `ClusterSingletonManager` on both nodes. - The old incarnation's publishes are held back through the broadcast seam. The test then downs that node and lets the singleton hand over. - The held publish is delivered to a real Warm `OpcUaPublishActor` on the surviving node. It is an older revision (lower up-number) but has a **higher sequence**. The survivor stays Active: no demotion steps, and SL stays 250. - The test first checks that the held message is revisioned and names the old node Primary. So it really would demote the survivor if it were accepted. - **T3, "a removed node cannot rejoin" pin:** in the same class. - After a node is downed, its cluster extension terminates, but its ActorSystem stays alive. A `Join` from that same system never brings it back. - A **new** ActorSystem on the same address does rejoin. It comes back as a younger member, with an up-number above the survivor's and a new UID. - **T6, DataEncoding read:** `A_DataEncoding_read_and_item_are_projected_…` (wire). - On the Standby, a Binary or XML encoded read of a structured (EUInformation) tag returns `BadOutOfService`/null. - On a scalar, the base read's own `BadDataEncodingUnsupported` comes back unchanged; the projection does not mask it. - A `DefaultXml` monitored item gets the projected value while Standby. On promotion it gets the current value read through its own encoding (TypeId `i=888`, not binary `i=889`). - **T7, item deleted between queue and publish:** `An_item_deleted_between_queue_and_publish_…` (wire). - The deleted item's queued samples never surface. - The sibling item is still first-delivered projected, and Republish returns the same result. - **T7, item reused:** `WarmRedundancyPooledWireTests` (wire, run in a non-parallel collection). - SDK 2.0.1 pools notification payloads process-wide. The **client** in the same test process draws from that pool too, so the test runs alone. - Marked payloads are acked together, which returns them to the pool. Their ClientHandle is then reused by an `i=2267` item, and every value of that item stays Good on the Standby. - The test first checks that the pool really does hand out a payload that still carries a marker. Without that check the test was vacuous: the marker-validation mutation survived my first version. - Positive control: an ordinary-tag item that reuses the handle is projected. - **T7, payload clone matrix:** `WarmStandbyCloneMatrixTests` (unit). One delivered `CoreUtils.Clone` carries two DataChangeNotifications (one with DiagnosticInfos), an EventNotificationList and a StatusChangeNotification. The tests check that: - only marked values are rewritten; - diagnostics, events and status pass through in order; - neither the clone nor the cached message is mutated; - the result encodes and decodes, and the marker is not on the wire; - two clones project to identical bytes; - a stale marker rented through the **real** SDK pool, with the same handle, never validates. - **T8, ACL-stood-down item on transition:** `An_ACL_stood_down_item_receives_nothing_…` (wire). - An item that `RevalidateMonitoredItems` stood down gets nothing from a demotion or a promotion. `QueueCurrentToLiveItems` returns 1, not 2. - Its permitted sibling gets both values. - Once the grant is restored, the next demotion reaches the item again. - **T10, per-counter metrics:** every listener selects by instrument instance (#503), and these tests run in non-parallel collections. - `WarmRedundancyMetricsTests` (Runtime.Tests) covers: - `warm_transition` with direction and reason (`agreed`, `snapshot`), and no count on a same-role snapshot; - the `warm_role` gauge going -1, 0, 1, 0; - `snapshot_rejected` at the publish actor, for `older_revision` and for `unrevisioned`; - `DriverHostActor`'s ordering gate. A stale snapshot is dropped under Warm and counted, and the role view does not move; the Unset control does move. This gate had no actor test before. - `WarmRedundancyPooledWireTests` covers: - `standby.projected_notifications` equals the number rewritten, counts again on Republish, and is 0 while Active; - `standby.suppressed_alarm_events` counts one per withheld transition and nothing once Active. **Mutations (all killed):** | Area | Mutation | |---|---| | T3 | The gate accepts older revisions. | | T3 | The revision is reduced to `(0, 0, seq)`, so the up-number and incarnation are lost. | | T3 pin | The Down is skipped (a harness negative control). | | T6 | DataEncoding reads are not projected. | | T6 | The promotion queue ignores the item's DataEncoding. | | T7 | The marker is not validated (the wire test and the unit test each kill it). | | T7 | The marker is not set. | | T7 | DiagnosticInfos are dropped. | | T7 | Event and status payloads are dropped. | | T7 | The rewrite is done in place. | | T7 | Only the first DataChangeNotification is rewritten. | | T8 | Stood-down items are not skipped. | | T10 | Each of the seven `Add` calls removed in turn. | | T10 | The direction tag is inverted. | | T10 | The role gauge is never set. | | T10 | The driver-host gate is ignored. | **Results:** the Release build has 0 warnings. | Project | Result | |---|---| | OpcUaServer.Tests | 1317 passed, 1 skipped | | ControlPlane.Tests | 459 passed | | Runtime.Tests | 1061 passed, 3 skipped | | Host.Tests | 288 passed | | OpcUaServer.IntegrationTests | 352 passed, 38 skipped | | Host.IntegrationTests | 350 passed, 2 skipped | The plan's "Implementation status" section is updated. The live-only legs are still open for T13: durable restore, TransferSubscriptions under one identity, and the rig legs. https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
Author
Owner

T13 live gate ran on 2026-11-13. Every applicable leg passes after c569f806, which fixes two crash-failover defects the gate found.

Evidence is in docs/plans/evidence/2026-11-13-717-t13/RESULTS.md (f826af8e), together with the logs, the rig files and the raw-client harness.

Rig. A separate two-node pair on the Mac. The shared docker-dev rig was not used.

  • Compose project otopcua-t13 with its own network, SQL and volumes.
  • Images otopcua-host:t13-*, built from origin/master 0c19f26c and later with the fix added.
  • Mode=Warm on both nodes.
  • A minimal config authored in its own DB: a Calculation driver, UNS references, a VirtualTag, a scripted alarm and an API key. Nothing reaches a device or a shared fixture.
  • The client is a raw SDK 2.0.1 harness (raw Publish/Republish/TransferSubscriptions).
Leg Result
L1 metadata PASS. RedundancySupport=Warm and NonTransparentRedundancyType. ServerUriArray lists self first, so it differs per node; both arrays hold the same URIs. It is read-only (BadNotWritable).
L2 bands PASS. Primary 250, Standby 90. A rejoining node's boot read is 1 or 50.
L3 standby data PASS. Raw tag, UNS reference and VirtualTag read BadOutOfService/null on the Standby while the Primary is Good. Subscriptions get one BadOutOfService per item, then silence. Acquisition continues: promotion delivers the current value Good.
L4 alarms PASS. On the Standby, Server-object and folder items received 0 events while the Primary received 3 transitions. A ConditionRefresh on the Standby returns Start, the retained condition, End. Every promotion runs an unsolicited refresh on each live event item.
L5 graceful failover (docker stop = Leave) PASS. The old Primary goes to SL 0, then BadOutOfService, with no Good after the drop. The new Primary sends the refresh, then SL 250, then Good. The levels match ComputeWarm for a non-Up member: the plan text says 90, the code gives 0.
Demotion timings 1–3, run live PASS. T1: 5 queued samples after a handle change are first-delivered projected; i=2267 is untouched; Republish matches. T2: Republish of the prebuilt, never-sent message returns BadMessageNotAvailable; the next Publish is projected, and so is its Republish. T3: Republish after demotion returns the original Good; after the ack it returns BadMessageNotAvailable.
L10 writes and Part 9 methods PASS. On the Standby, Write (raw and UNS), Acknowledge and AddComment all return BadInvalidState. On the Active node, the same API-key session gets Good for each. HistoryRead returns BadHistoryOperationUnsupported on both nodes, because the rig has no historian, so it is not refused by role.
L6 crash (docker kill) FAIL on 0c19f26c, PASS on c569f806. The survivor goes Active 12 ms after its own unreachable event. Measured gap from kill to Active: 11.4 s, all of it the failure detector. It stays Active through auto-down.
L7 rejoin / no failback PASS. After both the graceful and the crash runs, the restarted node comes back Standby (boot read 1 or 50, then 90) and never shows 250 or 255.
L11 transfer PASS. A same-identity API-key session pair transfers a subscription on the Standby. The transferred items are projected, go Good on promotion, and are projected again on demotion.
L9 Mode=Unset PASS. The same pair at 250/240 with Good on both nodes. SDK-default i=3709 and the orphan i=11314 []. The secondary accepts writes and delivers alarms, as today.
L8 None Not run. Covered by the wire tests.
L12 durable restore Not applicable (durable subscriptions are off).

Defects found and fixed in c569f806 (tests added and mutation-checked; Runtime.Tests 1063 passed, 3 skipped):

  1. The survivor demoted when auto-down removed the crashed Primary. About 15 s after promoting, the removed Primary left the unreachable set, so rule (3′) failed. The survivor went to SL 50 and BadOutOfService for about 15 s, until its own singleton published. A Primary that is Down, or that this node saw removed, now counts as gone. A Leaving/Exiting member, or one the node never saw, does not.
  2. The verdict read Akka's ClusterReadView, which can lag the event being handled. In run 2 the survivor promoted 4.3 s after its own unreachable event, on the next health tick. On a graceful leave the old Primary demoted only at Exiting, which left about 240 ms of dual-Active in which it delivered one more Good sample. The Warm verdict now uses a membership view built from the actor's own subscription. On re-run, promotion follows the unreachable event by 12 ms, and the graceful demotion happens in the same millisecond as Leaving, with no overlap.

Teardown: docker compose -p otopcua-t13 down -v, and both t13 image tags removed. A diff of docker ps -a, images, volumes and networks against the pre-run snapshot shows them identical. The otopcua-dev, ScadaBridge and historiangw containers were never touched. The worktree is removed.

G8/G9 (#615) are not marked; T11 (ScadaBridge#138) still gates the rollout flip.

https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi

**T13 live gate ran on 2026-11-13. Every applicable leg passes after `c569f806`, which fixes two crash-failover defects the gate found.** Evidence is in `docs/plans/evidence/2026-11-13-717-t13/RESULTS.md` (`f826af8e`), together with the logs, the rig files and the raw-client harness. **Rig.** A separate two-node pair on the Mac. The shared docker-dev rig was not used. - Compose project `otopcua-t13` with its own network, SQL and volumes. - Images `otopcua-host:t13-*`, built from `origin/master` `0c19f26c` and later with the fix added. - `Mode=Warm` on both nodes. - A minimal config authored in its own DB: a Calculation driver, UNS references, a VirtualTag, a scripted alarm and an API key. Nothing reaches a device or a shared fixture. - The client is a raw SDK 2.0.1 harness (raw Publish/Republish/TransferSubscriptions). | Leg | Result | |---|---| | L1 metadata | PASS. `RedundancySupport=Warm` and `NonTransparentRedundancyType`. `ServerUriArray` lists self first, so it differs per node; both arrays hold the same URIs. It is read-only (`BadNotWritable`). | | L2 bands | PASS. Primary 250, Standby 90. A rejoining node's boot read is 1 or 50. | | L3 standby data | PASS. Raw tag, UNS reference and VirtualTag read `BadOutOfService`/null on the Standby while the Primary is Good. Subscriptions get one `BadOutOfService` per item, then silence. Acquisition continues: promotion delivers the current value Good. | | L4 alarms | PASS. On the Standby, Server-object and folder items received 0 events while the Primary received 3 transitions. A ConditionRefresh on the Standby returns Start, the retained condition, End. Every promotion runs an unsolicited refresh on each live event item. | | L5 graceful failover (`docker stop` = Leave) | PASS. The old Primary goes to SL 0, then `BadOutOfService`, with no Good after the drop. The new Primary sends the refresh, then SL 250, then Good. The levels match `ComputeWarm` for a non-Up member: the plan text says 90, the code gives 0. | | Demotion timings 1–3, run live | PASS. **T1:** 5 queued samples after a handle change are first-delivered projected; `i=2267` is untouched; Republish matches. **T2:** Republish of the prebuilt, never-sent message returns `BadMessageNotAvailable`; the next Publish is projected, and so is its Republish. **T3:** Republish after demotion returns the original Good; after the ack it returns `BadMessageNotAvailable`. | | L10 writes and Part 9 methods | PASS. On the Standby, Write (raw and UNS), Acknowledge and AddComment all return `BadInvalidState`. On the Active node, the same API-key session gets Good for each. HistoryRead returns `BadHistoryOperationUnsupported` on both nodes, because the rig has no historian, so it is not refused by role. | | L6 crash (`docker kill`) | **FAIL on `0c19f26c`, PASS on `c569f806`.** The survivor goes Active 12 ms after its own unreachable event. Measured gap from kill to Active: **11.4 s**, all of it the failure detector. It stays Active through auto-down. | | L7 rejoin / no failback | PASS. After both the graceful and the crash runs, the restarted node comes back Standby (boot read 1 or 50, then 90) and never shows 250 or 255. | | L11 transfer | PASS. A same-identity API-key session pair transfers a subscription on the Standby. The transferred items are projected, go Good on promotion, and are projected again on demotion. | | L9 `Mode=Unset` | PASS. The same pair at 250/240 with Good on both nodes. SDK-default `i=3709` and the orphan `i=11314` `[]`. The secondary accepts writes and delivers alarms, as today. | | L8 None | Not run. Covered by the wire tests. | | L12 durable restore | Not applicable (durable subscriptions are off). | **Defects found and fixed in `c569f806` (tests added and mutation-checked; Runtime.Tests 1063 passed, 3 skipped):** 1. **The survivor demoted when auto-down removed the crashed Primary.** About 15 s after promoting, the removed Primary left the unreachable set, so rule (3′) failed. The survivor went to SL 50 and `BadOutOfService` for about 15 s, until its own singleton published. A Primary that is Down, or that this node saw removed, now counts as gone. A Leaving/Exiting member, or one the node never saw, does not. 2. **The verdict read Akka's `ClusterReadView`, which can lag the event being handled.** In run 2 the survivor promoted 4.3 s after its own unreachable event, on the next health tick. On a graceful leave the old Primary demoted only at Exiting, which left about 240 ms of dual-Active in which it delivered one more Good sample. The Warm verdict now uses a membership view built from the actor's own subscription. On re-run, promotion follows the unreachable event by 12 ms, and the graceful demotion happens in the same millisecond as Leaving, with no overlap. **Teardown:** `docker compose -p otopcua-t13 down -v`, and both `t13` image tags removed. A diff of `docker ps -a`, images, volumes and networks against the pre-run snapshot shows them identical. The otopcua-dev, ScadaBridge and historiangw containers were never touched. The worktree is removed. G8/G9 (#615) are not marked; T11 (ScadaBridge#138) still gates the rollout flip. https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
Author
Owner

T13b Mode=Unset re-check after c569f806: no Unset behaviour change. Every check passes, and an A/B run on the pre-fix build matches. No fix needed.

Evidence: docs/plans/evidence/2026-11-13-717-t13/RESULTS-unset-recheck.md (36eb6d55).

Rig. An isolated pair, compose project otopcua-t13b, with its own network, SQL, volumes and ports 24840/24841. OpcUa:Redundancy:Mode is absent from the environment. It ran origin/master f826af8e, which includes c569f806; the A/B ran 687256d6 (c569f806^) on the same rig in the same sequence. The T13 harness and config were used.

Check Result
ServiceLevel 250/240 PASS. SDK-default metadata (RedundancySupport=0, ServerRedundancyType, orphan i=11314 Good []).
Good data on both nodes PASS. A 1 h 44 min watch: 0 non-Good and 0 BadOutOfService on raw, UNS and VirtualTag; levels constant.
Secondary writes / alarms PASS. Raw and UNS writes, Acknowledge and AddComment are Good on the Secondary. Alarm transitions are delivered on the Server and folder items.
Graceful stop of the Primary PASS. The survivor goes 240 → 250 259 ms after Leaving (pre-fix: 270 ms; this is the snapshot debounce). Its data stays Good, with no dip. The old Primary goes silent within ~20 ms and its sessions time out. There is no role to double up under Unset, because both nodes serve Good by design.
docker kill of the Primary PASS. Unreachable after +12.3 s, auto-down at +27.3 s. Survivor: 240 → 200 (stale cached snapshot, the #672 path) → 250 at +43.6 s (pre-fix: +42.8 s). Data was Good throughout, with no demotion when auto-down removed the dead node.
Rejoin, no failback PASS. Boot read 0 (#885), then 240. The Active node stays at 250.

Why nothing changed. The role-decision changes do not run under Unset:

  • the actor subscribes to cluster member and reachability events only if (_redundancy.IsWarm);
  • under Unset, RecomputeServiceLevel takes the unchanged Compute path with the read-view SafeSelfStatus();
  • SnapshotPrimaryGone and WarmSelfStatus are reached only from RecomputeWarm.

The A/B confirms this live. The earlier L9 leg ran on the fixed build too, but it covered steady state only. This re-check adds the failover legs.

Docs. A leaving node reports ServiceLevel 0, not 90: ComputeWarm and Compute both return 0 for any member that is not Up/Joining. This is now corrected in the plan's L5 row, in the design's §4.3 band table and in the Warm table of docs/Redundancy.md (same commit).

Teardown. docker compose -p otopcua-t13b down -v was run and both t13b image tags were removed. docker ps -a, images, volumes and networks are identical to the pre-run snapshot. otopcua-dev, the ScadaBridge rigs, zb-historiangw and the .35 fixtures were not touched, and the worktree was removed.

https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi

**T13b `Mode=Unset` re-check after `c569f806`: no Unset behaviour change. Every check passes, and an A/B run on the pre-fix build matches. No fix needed.** Evidence: `docs/plans/evidence/2026-11-13-717-t13/RESULTS-unset-recheck.md` (`36eb6d55`). **Rig.** An isolated pair, compose project `otopcua-t13b`, with its own network, SQL, volumes and ports `24840/24841`. `OpcUa:Redundancy:Mode` is absent from the environment. It ran `origin/master` `f826af8e`, which includes `c569f806`; the A/B ran `687256d6` (`c569f806^`) on the same rig in the same sequence. The T13 harness and config were used. | Check | Result | |---|---| | ServiceLevel 250/240 | PASS. SDK-default metadata (`RedundancySupport=0`, `ServerRedundancyType`, orphan `i=11314` Good `[]`). | | Good data on both nodes | PASS. A 1 h 44 min watch: 0 non-Good and 0 `BadOutOfService` on raw, UNS and VirtualTag; levels constant. | | Secondary writes / alarms | PASS. Raw and UNS writes, Acknowledge and AddComment are Good on the Secondary. Alarm transitions are delivered on the Server and folder items. | | Graceful stop of the Primary | PASS. The survivor goes 240 → 250 **259 ms** after Leaving (pre-fix: 270 ms; this is the snapshot debounce). Its data stays Good, with no dip. The old Primary goes silent within ~20 ms and its sessions time out. There is no role to double up under Unset, because both nodes serve Good by design. | | `docker kill` of the Primary | PASS. Unreachable after +12.3 s, auto-down at +27.3 s. Survivor: 240 → 200 (stale cached snapshot, the #672 path) → 250 at **+43.6 s** (pre-fix: +42.8 s). Data was Good throughout, with no demotion when auto-down removed the dead node. | | Rejoin, no failback | PASS. Boot read 0 (#885), then 240. The Active node stays at 250. | **Why nothing changed.** The role-decision changes do not run under Unset: - the actor subscribes to cluster member and reachability events only `if (_redundancy.IsWarm)`; - under Unset, `RecomputeServiceLevel` takes the unchanged `Compute` path with the read-view `SafeSelfStatus()`; - `SnapshotPrimaryGone` and `WarmSelfStatus` are reached only from `RecomputeWarm`. The A/B confirms this live. The earlier L9 leg ran on the fixed build too, but it covered steady state only. This re-check adds the failover legs. **Docs.** A leaving node reports ServiceLevel **0**, not 90: `ComputeWarm` and `Compute` both return 0 for any member that is not Up/Joining. This is now corrected in the plan's L5 row, in the design's §4.3 band table and in the Warm table of `docs/Redundancy.md` (same commit). **Teardown.** `docker compose -p otopcua-t13b down -v` was run and both `t13b` image tags were removed. `docker ps -a`, images, volumes and networks are identical to the pre-run snapshot. otopcua-dev, the ScadaBridge rigs, zb-historiangw and the .35 fixtures were not touched, and the worktree was removed. https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
Author
Owner

Closing: the required work is complete. Checked against the "Required work" list:

Required Done
Intended mode and standalone vs configured-peer behaviour Owner decision 2026-11-13: OpcUa:Redundancy:Mode = Unset (default, today's server unchanged) / None / Warm; Hot and unknown values fail start (7829b937).
Correct standard type/property contract Warm: NonTransparentRedundancyType, read-only ServerUriArray [self, peers] (i=11314), RedundancySupport=Warm (i=3709). None: RedundancySupport=None, orphan i=11314 deleted. Unset: untouched, documented as such.
Hermetic over-wire tests Warm wire class plus the deferred T3/T6/T7/T8/T10 depth (687256d6); 39 mutations, all killed.
Docs and runbook docs/Redundancy.md, design and plan updated (f817c77e, 36eb6d55); the runbook's wrong NodeId was #716 (closed).
Live proof T13 on an isolated Warm pair: every applicable leg passes after c569f806, which fixed the two crash-failover defects the gate found (f826af8e). T13b Mode=Unset failover re-check: no behaviour change (36eb6d55).

What stays open, tracked elsewhere:

  • Enabling Mode=Warm on any tier is #907 (blocked on ScadaBridge#138, ServiceLevel-aware failover).
  • The production-client cutover is #615 G9, which is being run separately on the deployed default (Unset).
**Closing: the required work is complete.** Checked against the "Required work" list: | Required | Done | |---|---| | Intended mode and standalone vs configured-peer behaviour | Owner decision 2026-11-13: `OpcUa:Redundancy:Mode` = `Unset` (default, today's server unchanged) / `None` / `Warm`; `Hot` and unknown values fail start (`7829b937`). | | Correct standard type/property contract | `Warm`: `NonTransparentRedundancyType`, read-only `ServerUriArray` `[self, peers]` (`i=11314`), `RedundancySupport=Warm` (`i=3709`). `None`: `RedundancySupport=None`, orphan `i=11314` deleted. `Unset`: untouched, documented as such. | | Hermetic over-wire tests | Warm wire class plus the deferred T3/T6/T7/T8/T10 depth (`687256d6`); 39 mutations, all killed. | | Docs and runbook | `docs/Redundancy.md`, design and plan updated (`f817c77e`, `36eb6d55`); the runbook's wrong NodeId was #716 (closed). | | Live proof | T13 on an isolated Warm pair: every applicable leg passes after `c569f806`, which fixed the two crash-failover defects the gate found (`f826af8e`). T13b `Mode=Unset` failover re-check: no behaviour change (`36eb6d55`). | **What stays open, tracked elsewhere:** - Enabling `Mode=Warm` on any tier is **#907** (blocked on ScadaBridge#138, ServiceLevel-aware failover). - The production-client cutover is #615 G9, which is being run separately on the deployed default (`Unset`).
Author
Owner

Deployed inert to DEV vd03 and the QA pair vq03/vq04 on 2026-11-13. The build is master 76e73e7d, which contains 7829b937, f817c77e, 687256d6 and c569f806. Record: docs/deploy/2026-11-13-vd03-qa-to-76e73e7d.md (5baf05f6).

OpcUa:Redundancy:Mode is unset on all three nodes:

  • 0 OpcUa__Redundancy* / OpcUa__PeerApplicationUris* entries in the service env, checked by name only;
  • 0 Redundancy / PeerApplicationUris hits in appsettings*.json;
  • every boot logs OPC UA redundancy: Mode="Unset", effective ApplicationUri=…, peers=[], PromoteWhilePrimaryUnreachable=true.

Unchanged under Unset, matching the pre-deploy baseline:

  • redundancy CLI: Mode None, no server URIs. i=3709 RedundancySupport = 0, Good. i=11314 and i=2254 are Good String[].
  • otopcua_redundancy_warm_role = -1 ("not Warm"). There are no warm_transition, snapshot_rejected, mode_mismatch or opcua_standby_* series, and no Warm redundancy or mode_mismatch log lines.
  • QA stays 250/240. The Secondary serves Good canary data.
  • Both failover legs handed over in under 0.5 s with no failback; that speed comes from #906.

QA's ConfigDb ServerCluster.RedundancyMode is still Warm (1), which is latent and skipped under Unset. Turning Warm on in any tier remains #907, blocked on ScadaBridge#138.

Claude-Session: https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi

**Deployed inert** to DEV vd03 and the QA pair vq03/vq04 on 2026-11-13. The build is master `76e73e7d`, which contains `7829b937`, `f817c77e`, `687256d6` and `c569f806`. Record: `docs/deploy/2026-11-13-vd03-qa-to-76e73e7d.md` (`5baf05f6`). **`OpcUa:Redundancy:Mode` is unset on all three nodes:** - 0 `OpcUa__Redundancy*` / `OpcUa__PeerApplicationUris*` entries in the service env, checked by name only; - 0 `Redundancy` / `PeerApplicationUris` hits in `appsettings*.json`; - every boot logs `OPC UA redundancy: Mode="Unset", effective ApplicationUri=…, peers=[], PromoteWhilePrimaryUnreachable=true`. **Unchanged under Unset, matching the pre-deploy baseline:** - `redundancy` CLI: Mode `None`, no server URIs. `i=3709` RedundancySupport = 0, Good. `i=11314` and `i=2254` are Good `String[]`. - `otopcua_redundancy_warm_role` = -1 ("not Warm"). There are no `warm_transition`, `snapshot_rejected`, `mode_mismatch` or `opcua_standby_*` series, and no `Warm redundancy` or `mode_mismatch` log lines. - QA stays 250/240. The Secondary serves Good canary data. - Both failover legs handed over in under 0.5 s with no failback; that speed comes from #906. QA's ConfigDb `ServerCluster.RedundancyMode` is still Warm (1), which is latent and skipped under Unset. Turning `Warm` on in any tier remains #907, blocked on ScadaBridge#138. Claude-Session: https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
Author
Owner

A tier now runs Warm: the QA pair vq03/vq04, since 2026-11-13 13:49Z. That meets the "until a tier proves it" condition this issue was closed against. The tier flip itself is #907, now closed with the gate table. Record: docs/deploy/2026-11-13-qa-warm-717.md (1862fab6).

Live on QA:

  • 250/90 bands;
  • RedundancySupport=Warm and a self-first ServerUriArray;
  • standby reads BadOutOfService;
  • graceful failover in 0.18 s, reason=agreed, with no failback on rejoin;
  • LocalDb sync connected;
  • no mode_mismatch (ConfigDb RedundancyMode is Warm).

ScadaBridge#138, against the real pair:

  • A connection that landed on the Standby (90) over a healthy session moved to the Primary on the first sample, 0.1 s after connecting.
  • A connection on the booting Standby (50) did the same.

Not shown on QA:

  • the BadInvalidState write/method refusal: QA's tags are read-only, so writes get BadNotWritable on both nodes, and there is no condition. T13 L10 remains the proof;
  • the 60 s dwell: not reachable live without a session drop.

https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi

**A tier now runs Warm: the QA pair vq03/vq04, since 2026-11-13 13:49Z.** That meets the "until a tier proves it" condition this issue was closed against. The tier flip itself is #907, now closed with the gate table. Record: `docs/deploy/2026-11-13-qa-warm-717.md` (`1862fab6`). **Live on QA:** - 250/90 bands; - `RedundancySupport=Warm` and a self-first `ServerUriArray`; - standby reads `BadOutOfService`; - graceful failover in 0.18 s, `reason=agreed`, with no failback on rejoin; - LocalDb sync connected; - no `mode_mismatch` (ConfigDb `RedundancyMode` is Warm). **ScadaBridge#138, against the real pair:** - A connection that landed on the Standby (90) over a healthy session moved to the Primary on the first sample, 0.1 s after connecting. - A connection on the booting Standby (50) did the same. **Not shown on QA:** - the `BadInvalidState` write/method refusal: QA's tags are read-only, so writes get `BadNotWritable` on both nodes, and there is no condition. T13 L10 remains the proof; - the 60 s dwell: not reachable live without a session drop. https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#717