diff --git a/docs/plans/evidence/grpc-data-ext/A1-core.md b/docs/plans/evidence/grpc-data-ext/A1-core.md index 7dc4daa92..af0da2765 100644 --- a/docs/plans/evidence/grpc-data-ext/A1-core.md +++ b/docs/plans/evidence/grpc-data-ext/A1-core.md @@ -10,8 +10,12 @@ agent's). Branch `worktree-agent-ad44f71fa7ab46039`, based on master `cbb5b396`. `OtOpcUaNodeManager.ConditionState.cs` + record types `ConditionStateRecords.cs` (`6836efae`, tests `ConditionStateNodeManagerTests` 12/12 incl. parity (a)–(g), T1, T3, MaxConditions); `ConditionStateHub` + DI + hosted-service wiring (`923c2511`, `ConditionStateHubTests` 5/5 incl. falsely-empty). -- **In progress:** `OpcUaPublishActor.MarkConditionsKnown` (deferral, F2, G3). -- **Next:** driver actors (signal, backstop, F5) + fake-driver helper; scripted `OnInputsEstablished`; manifest `A1`; gates. + `OpcUaPublishActor.MarkConditionsKnown` + G3 (`d64578b1`, `OpcUaPublishActorConditionKnownTests` 5/5); + driver actors: signal forward, routing, OpcUaClient backstop, F5 timeout (`DriverHostActor.ConditionSignals.cs`, + `ConditionSignalOptions`), tests + reusable rig `NativeAlarmSignalTestBase`/`FakeSignallingAlarmDriver` (`47bf3a1c`, + `NativeAlarmInitialStateSignalTests` 6/6). +- **In progress:** scripted `OnInputsEstablished` (engine → `ScriptedAlarmHostActor`). +- **Next:** manifest `A1`; gates; evidence tables. ## Decisions and deviations (each with a reason) @@ -42,6 +46,18 @@ agent's). Branch `worktree-agent-ad44f71fa7ab46039`, based on master `cbb5b396`. - **`snapshot_complete` readiness** = `ConditionStateHub.IsSnapshotComplete` = NM apply complete (false at boot and from `RebuildAddressSpace` until `CompleteAddressSpaceApply`) AND `IDriverPrimaryRoleSource.ShouldActAsPrimary`. +- **`AlarmStateUpdate` gained an optional `Source`** (driver id / `OpcUaPublishActor.ScriptedSource`) so G3 can + discard exactly the source that lost a projection. An unattributed loss (null source, e.g. the #760 ack-revert + write) discards every deferred mark — conservative. A deferred QUALITY drop does not discard marks. +- **Live + deferred:** like `AlarmStateUpdate`, a mark received during a plan is applied live (to the old nodes) AND + deferred; the deferred copy replays after every deferred alarm/quality. +- **F5 window** starts at each `ConnectivityChanged(Connected)` edge and covers every alarm ref the driver owns at + that instant (`_alarmRefsByDriver`); a Bad edge cancels the F5 and backstop timers. Conditions added by a later + deploy while connected are not covered by F5 until the next Good edge (they still become known on the next signal). + Diagnostic cleared when a signal empties the pending set, or the driver is removed. +- **Backstop** applies only to driver type `OpcUaClient` (`ConditionKnownSettle:OpcUaClient`, default 60 s); an + `Unsignalable` report from any other type is logged and ignored (the conditions stay unknown). + ## Open questions (none yet)