Resolve standard non-transparent redundancy metadata deferred by current server #717
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
No production implementation or live call was performed in this audit. Parent #615 remains open pending all original gates.
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.
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.
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.
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 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 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.
#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 independentroot-cleanup-evidence.json. Architectural design remains unapproved; #717 stays open.Read-only follow-up after the approved spikes:
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 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.
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.
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.
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 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.
Read-only production notification-taxonomy audit completed and root-reviewed against current head
8828e999and 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;
_variablesmembership, 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 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.
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.
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.
Draft spec and plan are on master
2be43aa9, awaiting owner approval:docs/plans/2026-11-11-warm-redundancy-717-design.mdanddocs/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:
OpcUa:Redundancy:Mode,Unset/None/Warm.BadNoCommunicationwhile acquisition continues.Blockers it found:
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
Hotmigration, and the ServiceLevel values.Owner decisions 2026-11-13: spec and plan approved (
2be43aa9). Answers to design §9:BadInvalidStateunder Warm only.OpcUa:Redundancy:PromoteWhilePrimaryUnreachable(default on).BadOutOfService(re-prove in T0 alongside the SDK 2.0.1 hooks).BadInvalidStateunder Warm.Hot: leave the CHECK, rely on the §3 mismatch Error (no migration).Cross-repo prerequisite filed as ScadaBridge#138 (ServiceLevel-aware failover); no tier sets
Mode=Warmuntil it is deployed there. Unblocked; implementation (default-off) queued.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 refusedBadInvalidStateunder Warm.PromoteWhilePrimaryUnreachabledefaults to on. The standby code isBadOutOfService. 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
StandardServerwith aCustomNodeManager2(the same base as the product), driven over a loopback session with rawCreateSubscription/Publish/Republishcalls 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.IPredefinedNodeSubtypeReplacer.ReplacePredefinedInstanceSubtypeAsyncinOnNodeManagerStartedAsyncpromotesServerRedundancyto 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 orphani=11314is still readable by NodeId (Good, empty array), although browse and TranslateBrowsePaths don't reach it.ReadValueAttributeoverride (run the base, thenBadOutOfService/null) covers Read with IndexRange, the initial sample at queue 1 and 10, the change fan-out, Sampling→Reporting,ResendDataand AggregateFilter. Non-ordinary nodes andi=2267stay Good. Un-projecting delivers the latest stored value without a new driver value.BadOutOfServiceis re-proven.IMonitoredItemManageron aMonitoredNodeMonitoredItemManagersubclass. The plannedMonitoredItemFactoryhook exists only onAsyncCustomNodeManager. But object-keyed stamps never reach a delivered notification: 0 hits.SentMessageQueuereturnsCoreUtils.Cloneof 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 returnsBadMessageNotAvailable, so "first delivery through Republish" can't happen. The anonymous TransferSubscriptions leg can't run (BadUserAccessDenied).Proposed alternative for the go/no-go:
(SubscriptionId, SequenceNumber), and project the fresh clone on a Standby decision. No cached SDK object is touched. Prune againstAvailableSequenceNumbers.MonitoredItemNotification.Message, a non-encoded helper that the SDK'sMemberwiseClonecopies. 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.
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.
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 overlaydocker-dev/docker-compose.warm.yml.What is implemented:
OpcUa:Redundancy:Mode=Unset(default) /None/Warm.Hotand unknown values fail start.Warmneeds at least one distinct peer, the node's own effective URI must not be listed as a peer (anApplicationConfigPathXML load counts), and the node needs the driver role. Each start logs a boot banner line.OnNodeManagerStartedAsync, usingIPredefinedNodeSubtypeReplacer):Warm:NonTransparentRedundancyType, a read-onlyServerUriArray[self, peers],RedundancySupport=Warm, ServiceLevel 1 at boot.None:RedundancySupport=None, and the orphani=11314is deleted, so a read by NodeId returnsBadNodeIdUnknown.Unset: nothing is touched. The orphan still reads Good[]by NodeId, anddocs/Redundancy.mdnow says so instead of "absent". I hid it underNonebecause the spec says absent there. UnderUnsetI corrected the doc instead, becauseUnsetmust not change anything.RedundancyStateChanged.Revisionis (up-number, incarnation tick, sequence). Akka keepsMember.UpNumberinternal, so it is read by reflection, and a test pins that. UnderWarm,OpcUaPublishActorandDriverHostActordrop older revisions. An unrevisioned snapshot never makes a node Active.WarmRoleAuthoritydecides Active: both the node's own membership view and the accepted snapshot must name it.PromoteWhilePrimaryUnreachabledefaults to on.ServiceLevelCalculator.ComputeWarmgives Standby 90/50 and Active 250/200/100.IStandbyProjectionwithDeferredStandbyProjection, 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.EquipmentVariableStatereads, samples, ResendData and aggregate input are projected toBadOutOfService/null.BadInvalidStateafter authorization. This covers scripted conditions and native acks.ConditionRefresh2Asyncon every live event item.OrdinaryTagMonitoredItemis installed by re-implementingIMonitoredItemManager, under Warm only. It sets anOrdinaryTagMarker(ClientHandle, DataValue)onMonitoredItemNotification.Message.PublishAsync/RepublishAsyncapply aFirstDeliveryRecordkeyed by (sub, seq). It is pruned byAvailableSequenceNumbersand bounded.RedundancyModecross-check (Hotcounts as a mismatch) and the six instruments.blocked,cross-repo) against ScadaBridge#138.Tests (Release build, 0 warnings):
Default-off is pinned twice:
Unset_is_todays_server_exactlyover the wire (SDK-defaulti=3709, the orphan,ServerRedundancyType, boot SL 0, Good data, no Warm hooks) andUnset_never_drives_the_projection_and_keeps_todays_levelsin the actor. The SDK-field regression pin isSdk_contract_the_marker_survives_the_delivery_clone_and_is_never_encoded. It checks thatCoreUtils.Clonecopies the helper and that the encoded bytes match an unmarked message's.Mutations (13, all killed):
An_older_revision_after_a_newer_one_is_droppedStandby_suppresses_…(wire)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 sharedotopcua-host:devimage 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):
mode_mismatch.https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
The deferred test coverage is on
masteras687256d6. 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:
WarmSingletonHandoverTestsin ControlPlane.Tests.RedundancyStateActorunderClusterSingletonManageron both nodes.OpcUaPublishActoron 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.Joinfrom that same system never brings it back.A_DataEncoding_read_and_item_are_projected_…(wire).BadOutOfService/null.BadDataEncodingUnsupportedcomes back unchanged; the projection does not mask it.DefaultXmlmonitored item gets the projected value while Standby. On promotion it gets the current value read through its own encoding (TypeIdi=888, not binaryi=889).An_item_deleted_between_queue_and_publish_…(wire).WarmRedundancyPooledWireTests(wire, run in a non-parallel collection).i=2267item, and every value of that item stays Good on the Standby.WarmStandbyCloneMatrixTests(unit). One deliveredCoreUtils.Clonecarries two DataChangeNotifications (one with DiagnosticInfos), an EventNotificationList and a StatusChangeNotification. The tests check that:An_ACL_stood_down_item_receives_nothing_…(wire).RevalidateMonitoredItemsstood down gets nothing from a demotion or a promotion.QueueCurrentToLiveItemsreturns 1, not 2.WarmRedundancyMetricsTests(Runtime.Tests) covers:warm_transitionwith direction and reason (agreed,snapshot), and no count on a same-role snapshot;warm_rolegauge going -1, 0, 1, 0;snapshot_rejectedat the publish actor, forolder_revisionand forunrevisioned;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.WarmRedundancyPooledWireTestscovers:standby.projected_notificationsequals the number rewritten, counts again on Republish, and is 0 while Active;standby.suppressed_alarm_eventscounts one per withheld transition and nothing once Active.Mutations (all killed):
(0, 0, seq), so the up-number and incarnation are lost.Addcalls removed in turn.Results: the Release build has 0 warnings.
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
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.
otopcua-t13with its own network, SQL and volumes.otopcua-host:t13-*, built fromorigin/master0c19f26cand later with the fix added.Mode=Warmon both nodes.RedundancySupport=WarmandNonTransparentRedundancyType.ServerUriArraylists self first, so it differs per node; both arrays hold the same URIs. It is read-only (BadNotWritable).BadOutOfService/null on the Standby while the Primary is Good. Subscriptions get oneBadOutOfServiceper item, then silence. Acquisition continues: promotion delivers the current value Good.docker stop= Leave)BadOutOfService, with no Good after the drop. The new Primary sends the refresh, then SL 250, then Good. The levels matchComputeWarmfor a non-Up member: the plan text says 90, the code gives 0.i=2267is untouched; Republish matches. T2: Republish of the prebuilt, never-sent message returnsBadMessageNotAvailable; the next Publish is projected, and so is its Republish. T3: Republish after demotion returns the original Good; after the ack it returnsBadMessageNotAvailable.BadInvalidState. On the Active node, the same API-key session gets Good for each. HistoryRead returnsBadHistoryOperationUnsupportedon both nodes, because the rig has no historian, so it is not refused by role.docker kill)0c19f26c, PASS onc569f806. 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.Mode=Unseti=3709and the orphani=11314[]. The secondary accepts writes and delivers alarms, as today.Defects found and fixed in
c569f806(tests added and mutation-checked; Runtime.Tests 1063 passed, 3 skipped):BadOutOfServicefor 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.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 botht13image tags removed. A diff ofdocker 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
T13b
Mode=Unsetre-check afterc569f806: 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 ports24840/24841.OpcUa:Redundancy:Modeis absent from the environment. It ranorigin/masterf826af8e, which includesc569f806; the A/B ran687256d6(c569f806^) on the same rig in the same sequence. The T13 harness and config were used.RedundancySupport=0,ServerRedundancyType, orphani=11314Good[]).BadOutOfServiceon raw, UNS and VirtualTag; levels constant.docker killof the PrimaryWhy nothing changed. The role-decision changes do not run under Unset:
if (_redundancy.IsWarm);RecomputeServiceLeveltakes the unchangedComputepath with the read-viewSafeSelfStatus();SnapshotPrimaryGoneandWarmSelfStatusare reached only fromRecomputeWarm.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:
ComputeWarmandComputeboth 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 ofdocs/Redundancy.md(same commit).Teardown.
docker compose -p otopcua-t13b down -vwas run and botht13bimage 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
Closing: the required work is complete. Checked against the "Required work" list:
OpcUa:Redundancy:Mode=Unset(default, today's server unchanged) /None/Warm;Hotand unknown values fail start (7829b937).Warm:NonTransparentRedundancyType, read-onlyServerUriArray[self, peers](i=11314),RedundancySupport=Warm(i=3709).None:RedundancySupport=None, orphani=11314deleted.Unset: untouched, documented as such.687256d6); 39 mutations, all killed.docs/Redundancy.md, design and plan updated (f817c77e,36eb6d55); the runbook's wrong NodeId was #716 (closed).c569f806, which fixed the two crash-failover defects the gate found (f826af8e). T13bMode=Unsetfailover re-check: no behaviour change (36eb6d55).What stays open, tracked elsewhere:
Mode=Warmon any tier is #907 (blocked on ScadaBridge#138, ServiceLevel-aware failover).Unset).Deployed inert to DEV vd03 and the QA pair vq03/vq04 on 2026-11-13. The build is master
76e73e7d, which contains7829b937,f817c77e,687256d6andc569f806. Record:docs/deploy/2026-11-13-vd03-qa-to-76e73e7d.md(5baf05f6).OpcUa:Redundancy:Modeis unset on all three nodes:OpcUa__Redundancy*/OpcUa__PeerApplicationUris*entries in the service env, checked by name only;Redundancy/PeerApplicationUrishits inappsettings*.json;OPC UA redundancy: Mode="Unset", effective ApplicationUri=…, peers=[], PromoteWhilePrimaryUnreachable=true.Unchanged under Unset, matching the pre-deploy baseline:
redundancyCLI: ModeNone, no server URIs.i=3709RedundancySupport = 0, Good.i=11314andi=2254are GoodString[].otopcua_redundancy_warm_role= -1 ("not Warm"). There are nowarm_transition,snapshot_rejected,mode_mismatchoropcua_standby_*series, and noWarm redundancyormode_mismatchlog lines.QA's ConfigDb
ServerCluster.RedundancyModeis still Warm (1), which is latent and skipped under Unset. TurningWarmon in any tier remains #907, blocked on ScadaBridge#138.Claude-Session: 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:
RedundancySupport=Warmand a self-firstServerUriArray;BadOutOfService;reason=agreed, with no failback on rejoin;mode_mismatch(ConfigDbRedundancyModeis Warm).ScadaBridge#138, against the real pair:
Not shown on QA:
BadInvalidStatewrite/method refusal: QA's tags are read-only, so writes getBadNotWritableon both nodes, and there is no condition. T13 L10 remains the proof;https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi