test(opcua): distinguish baseline close semantics and terminal ownership

This commit is contained in:
Joseph Doherty
2026-11-10 16:50:00 -05:00
parent 2cf7c1d248
commit 3e136d7367
8 changed files with 2668 additions and 17 deletions
@@ -82,13 +82,14 @@ as the candidate; those observations cannot invent the missing manager ownership
proof. No manual Session.Dispose, store replacement or cache clearing was added
to make an assertion pass.
Before any common lifecycle/acceptance protocol can be proposed, a separately
reviewed short control must establish original SessionManager removal, rejection
of the old authentication token, rejection of old CP tokens from a fresh session,
then drop every strong session/point/test reference at an isolated helper boundary
and perform bounded GC/weak-reference observation. Any retained IDisposable point
resource needs direct source/ownership inspection. Certificate-store/native
ownership gaps must remain explicit. This proposal has **not** been executed.
The historical partial proof above did not test token/continuation rejection or
collection after dropping its diagnostic references. Later, separately reviewed
short controls established those semantics and observed the remaining server
graph retention after normal shutdown. Their direct point-resource inspection,
two weak-reference phases and separate terminal-disposal attribution are recorded
in [OWNERSHIP.md](OWNERSHIP.md) and `semantic-evidence.json`. Both ordinary failure
results remain intact. Certificate-store/native ownership gaps remain explicit;
these findings do not approve a common lifecycle/acceptance protocol.
The standalone adapter also lacks the candidate's xUnit/VSTest host; equal process
memory overhead is not proven. Earlier original-subset managed/timer growth is an
@@ -120,5 +121,10 @@ Add `--inventory` to build the read-only metadata inventory instead. The runner
uses a fresh private directory and a temporary environment credential with the
same prefix/byte length as the canonical fixture; it preserves the original child
exit. Exit 1 is an observed control failure; exit 2 is operations completed with
unsupported ownership parity. Neither is a passing baseline. The smoke driver
has a hard 120-second bound and no long-run option.
unsupported ownership parity. Neither is a passing baseline. Normal/restart modes
have a hard 120-second bound and no long-run option.
The later semantic modes are `--mode semantic-retention` and the separately gated
`--mode semantic-terminal-dispose` attribution control. They use the 120-second
operation deadline plus bounded independent cleanup and a 180-second outer runner
limit. Neither changes normal/active-restart results or authorizes a long run.