Skip to content

Improve behavioral coverage and resolve known failures for 4.0.0 #572

Closed

Description

Current status - 2026-11-08

CLOSED: HISTORICAL COVERAGE/AUDIT SCOPE COMPLETED. The accepted September 13 coverage and final-defect audit remains source-bound. Its then-current statement that no production bug remained does not describe today's backlog. Newly discovered defects and omitted native scopes are tracked by the current open issues and #575/#503. This reconciliation preserves the accepted historical closure without claiming current release readiness.

Implementation baseline: master a2f096f1068f7951d193b95a03e76b480b7ef8a8, merged through #693 (same tree as qualified source 03f08cbecb156b7958dfc3e570d92d3deac04b4b). Shared release-wide review, cost and evidence gates remain in #575/#503. Historical observations and stopped studies below retain their original scope and verdict.

Outcome

Reach 4.0.0 readiness with increased behavioral coverage and no known unresolved bugs. This issue owns the coverage baseline and final defect audit. #545 and #549 retain their original investigations; #509 owns the differential oracle.

Acceptance

  • Record baseline source revision, supported Unity matrix, actual test results, and line/branch reports where instrumentation supports them. Distinguish source-generator coverage from Runtime and Editor coverage.
  • Inventory gaps across public APIs, lifecycle ownership, mutation visibility, reentrancy, reset, exceptions, pooling, stale handles, cleanup failures, and reclamation.
  • Close each identified gap with tests of production behavior and meaningful failure diagnostics. Parameterize route kinds and use LeakWatcher where applicable.
  • Resolve test: investigate intermittent full-stack dispatch allocation failure #545 and Investigate GenerateOnly subprocess timeout with empty output #549 with evidence from their original scopes. Passing repetitions alone do not attribute a historical failure. Do not relax assertions, skip tests, add sleeps, or increase timeouts to obtain green.
  • Retain comparable before/after coverage reports and demonstrate increased behavior coverage without an arbitrary global percentage or changed exclusions masking regressions.
  • Pass the supported Unity correctness matrix and explicit allocation suites, including test discovery/outcome and cleanup checks.
  • Audit the final revision for outstanding defects, skips/inconclusives, and omitted scopes; report each honestly.

Method

Before each change, state the hypothesis, RED observation, GREEN checks, stop rule, and evidence location. Fix and test the whole observed failure class. Keep raw local evidence under ignored artifacts and progress records; link durable CI/evidence records here. Inability to reproduce is not proof that a bug is fixed. Unresolved bugs block this issue.

2026-09-10 baseline and instrumentation repair

PR #571, commit c2065e6, repairs an empty coverage artifact. The configured generator command passed all 257 tests but emitted zero valid lines/branches because shared build settings disable symbols. Explicit portable symbols, with CopyAnalyzerPayload=false, produce 1,570/1,714 lines (91.59%) and 520/688 branches (75.58%) across generator and analyzer assemblies. Executing the actual YAML command from its declared working directory reproduces the totals. The new actual CI guard rejects the empty artifact and requires both assemblies. This is instrumentation repair, not increased Runtime/Editor line coverage.

Local baseline: 658 docs tests, 257 generator/analyzer tests, 28 plain .NET runtime tests, and two full 1,301-case npm runs pass. Native Unity 6000.4.6f1 allocation assembly: 291 passes, zero failures/skips/inconclusives, 274.4666179 seconds. Native PlayMode: 1,517 passes, zero failures/inconclusives, one existing interactive-editor optimization-contract skip, 9.1001473 seconds. Both native runs have matching raw/cleanup identities and restored clean scenes. These are local Mono/debug observations.

Issues #545 and #549 are now resolved by their dated investigation verdicts. #545 reproduced and fixed inherited diagnostics as a real allocation-failure mechanism, retained failure-only state instrumentation, and documented why the original uninstrumented observation cannot be distinguished further without recurrence. #549 fixed the separate catastrophic regex defect, retained subprocess failure diagnostics and the unchanged 120-second deadline, and documented the same historical-evidence limit. Neither resolution relies on passing repetitions alone, relaxed assertions, skips, retries, sleeps, or longer timeouts. Durable final CI and broader coverage work remain open.

2026-09-13 current matrix and comparable coverage

The current baseline and comparable coverage record binds PR #585 and PR #588 source revisions to all 24 downloaded Unity artifacts, the four-version supported matrix, exact per-mode discovery/outcome multisets, unchanged generator/analyzer line and branch coverage, the explicit allocation suite and cleanup identity, and the recurring-CI timing guard. Runtime/Editor line and branch instrumentation is not enabled; their coverage evidence is behavioral and test-outcome based. Rerun affected scopes before the final audit if later source changes invalidate this current-head record.

Activity

  1. wallstop commented on Sep 11, 2026

    @wallstop
    CollaboratorAuthor

    #545 combined-scope follow-up at 3107ea8719a226d92e57881115741058b49c5ac6:

    Unity 6000.4.6f1 ran the Editor + Editor.Allocations assemblies with only the explicit documentation-image writer excluded. It reported 1,233 pass / 0 fail / 1 existing skip / 8 known imported-sample inconclusives in 300.1244842s; every full-stack allocation row passed, including Untargeted. Run GUID e0d70796-e186-4e12-ad49-c628679c319c; raw result and cleanup evidence are retained locally under ignored .artifacts/unity-mcp/session287-editor-allocation-combined-545.json*.

    The fixture now would report diagnostics target, stack-trace, bus/token modes, emission ID, and registrations on recurrence. None occurred, so this is captured-state non-recurrence, not historical attribution and not resolution of #545. No thresholds, retries, sleeps, timeouts, exclusions, or code were changed. The eight inconclusives remain because exact CI sample copying would duplicate GUIDs already present in user-owned imported sample assets; the host was left unchanged and the original scene clean. #549 and the broader coverage/defect audit remain outstanding.

  2. wallstop commented on Sep 11, 2026

    @wallstop
    CollaboratorAuthor

    #549 original full-script scope was repeated with its enhanced process diagnostics armed at 3107ea8719a226d92e57881115741058b49c5ac6. The sequential npm test run passed 1,321/1,321 with zero failures/skips/cancellations/todos in 167.947s (168.058s wall). The 120-second GenerateOnly subprocess deadline, concurrency, assertions, and code were unchanged.

    The timeout did not recur, so there is no process error/stack and still no historical attribution. Together with the separately recorded #545 combined-scope run, both defect investigations now have fresh instrumented full-scope non-recurrences, but neither is resolved under this issue's acceptance policy.

  3. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Coverage-audit progress from the #509 native lifecycle slice, local commit 62406b03 (unpushed; human review required):

    • The existing three-case generated native-owner test was replaced at the same discovered count and now generates real scene moves, persistence, and host destruction across Untargeted, Targeted, and Broadcast.
    • A skip-destroy production-adapter mutant is detected as state drift and deletion-shrinks to the single DestroyHost input.
    • Surviving native/persistent hosts are destroyed after every replay, preventing shrink-probe accumulation.
    • The initial RED caught an observation-design regression against the established async scene-unload test (mismatch moved from post-unload operation 7 to setup operation 0). Narrowing the new evidence to generated lifecycle operations restored the fixed protocol without changing its assertion or adding timing workarounds.

    Verification: native fixture 24/24 twice (0.7523653s, 0.2428642s); generator/model fixture 389/389; ordinary Runtime 1,517 pass / 0 fail / 0 inconclusive in 7.5868529s; Node/script 1,323/1,323; validate:all, CSharpier, and whitespace checks pass. All Unity runs reached identity-matched cleanup with the original scene clean. No workflow, matrix, assembly, category exclusion, or discovered test count changed; the full Runtime duration remains within the retained same-count local range (6.6004–9.1001s).

    Detailed preregistration and RED/GREEN record: #509 (comment) and #509 (comment).

    This closes one lifecycle-ownership gap but does not complete #572: comparable final coverage reports, the broader inventory, supported Unity matrix, allocations, and historical attribution for #545/#549 remain open.

  4. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Current-head allocation verification for the coverage/readiness audit:

    • WallstopStudios.DxMessaging.Tests.Editor.Allocations: 291 pass / 0 fail / 0 skip / 0 inconclusive, 285.2221643s on Unity 6000.4.6f1.
    • Run GUID 508a8081-ecf0-4abc-bb7a-b0c3f8ee1b6f; raw and cleanup sidecars both report done, their identity/path match, framework errors are empty, and the original single scene remains loaded and clean.
    • The exact test: build a differential bus state-machine oracle #509 factor-to-suite ownership map is retained at test: build a differential bus state-machine oracle #509 (comment). It distinguishes allocation-window owners from behavioral-only generator, handle, reentrancy, exception, native lifecycle, and shrink factors whose setup would contaminate GC measurement.
    • No source, budget, attempt count, category, workflow, matrix, exclusion, or discovered test changed. This verification adds no recurring CI work.

    This satisfies another current-revision local allocation check for #572, but not its supported-version matrix or final audit gate; those remain open pending reviewed/pushed source and CI evidence.

  5. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Current-head audit evidence for PR #588 is complete at 62406b037496f15dea3dbdd4ce6c7a0e93d3fab7: all seven workflows passed, including all four Unity versions, performance, and both devcontainer architectures.

    For Unity 2021.3 and 6000.3, downloaded current/baseline artifacts have identical discovered totals and outcomes in every mode. EditMode leaf tests are identical; player-backed modes contain only the intentional three-case native lifecycle replacement and the passing generator-version 12-to-13 fixture advancement. The directly comparable same-runner/version CI jobs were 31 seconds lower in aggregate, while the new manual validation branch remained skipped.

    PR: #588

    This advances the coverage/defect audit without closing the remaining matrix and historical-attribution work.

  6. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Current baseline and comparable coverage record — 2026-09-13

    Sources:

    I downloaded and parsed all 24 baseline/current Unity artifacts. Each row below is total / passed / failed / inconclusive / skipped; baseline and current are identical:

    Versions EditMode PlayMode Standalone
    2021.3, 2022.3, 6000.3 954 / 943 / 0 / 0 / 11 1,518 / 1,515 / 0 / 0 / 3 1,514 / 1,511 / 0 / 0 / 3
    6000.5 954 / 943 / 0 / 0 / 11 1,517 / 1,514 / 0 / 0 / 3 1,513 / 1,510 / 0 / 0 / 3

    All four EditMode fullname/result/label multisets are byte-for-byte equivalent after XML parsing. In each of the eight player-backed comparisons, the only leaf deltas are four passing replacements:

    • unsupported generator version 12 advances to 13;
    • the three GeneratedActivityReplayMatchesThroughNativeOwners cases become GeneratedLifecycleReplayMatchesAndShrinksDestroyedHostMutation.

    The new test retains a version-seven generated managed prefix, then exercises real scene move, persistence, destruction, post-destruction emit, and trim behavior. Its skip-destroy mutant is detected and deletion-shrinks to one DestroyHost operation. This is increased lifecycle behavior coverage at the same discovered count, not a global percentage claim. No Unity test exclusion, assembly selection, category filter, matrix entry, or outcome changed.

    Generator/analyzer coverage is instrumented separately. Baseline artifact 10307425618 (archive digest fc71ebcfa25213edc793813df65e113e6b25ac339a606f1d12a98b2c89bcc87a) and current artifact 10311512302 (archive digest d2c0bc0acc04a72d917863ce27b748043b549c7eec1789f74de803a9b1b6fea0) are numerically identical: 1,576/1,719 lines (91.6%), 553/708 branches (78.1%), and 90/90 methods across the generator and analyzer assemblies. Runtime/Editor line and branch coverage is not collected by the current Unity workflow; its supported evidence is the exact NUnit discovery/outcome comparison above.

    The explicit Unity 6000.4.6f1 allocation assembly at the same current head passed 291/291 with zero skips or inconclusives in 285.2221643 seconds. Raw and cleanup identities match under GUID 508a8081-ecf0-4abc-bb7a-b0c3f8ee1b6f; framework errors are empty and the original scene is clean.

    All current-head workflows pass. The optional manual validation path stayed skipped, and the three directly comparable same-runner/version jobs were 31 seconds lower in aggregate than PR #585. This is CI-work preservation evidence, not a causal speedup claim.

    This record satisfies the baseline, comparable before/after coverage, and current supported-matrix/allocation checklist items. If later source changes affect these scopes, rerun and replace this evidence before the final-revision audit.

  7. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Coverage inventory update (2026-09-13): the requested behavior dimensions all have direct production-test owners (public surface and route fixtures; lifecycle/component/native-host fixtures; mutation+differential traces; reentrant/reset/exception suites; eviction/reclamation/allocation suites; stale-token/retargeting suites; and LeakWatcher/cleanup-identity fixtures).

    The inventory found one concrete uncovered lifecycle path in a public API: MessageBusProviderHandle stores a ScriptableObject provider in both its Unity-object field and an IMessageBusProvider field. After DestroyImmediate, the interface reference remains CLR-non-null and bypasses Unity's destroyed-object null semantics.

    Focused RED on Unity 6000.4.6f1: DestroyedProviderAssetBecomesUnavailable failed 0/1 in 0.19 s because TryGetProvider returned true after destruction. The local stacked fix rejects destroyed Unity-backed runtime providers and falls back to a still-live serialized provider. Focused GREEN: the full provider-handle fixture passes 8/8 in 0.14 s, including unavailable-after-destroy and destroyed-override fallback, with no sleeps, retries, timeout changes, ignores, or relaxed assertions. The two new cases account for about 9 ms in that run.

    This is not marked delivered yet: the fix remains local and stacked behind draft PR #588's required human-review/merge gate. After rebase it still needs the category-filtered supported matrix. An unfiltered local PlayMode attempt entered benchmark fixtures excluded by recurring correctness CI and remained active past the MCP client's 300-second ceiling; that attempt is neither a correctness pass nor failure and will not be repeated.

  8. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Affected-scope validation for the destroyed-provider gap now passes on local commit 3ff463dc7c8b696c5d799a6b3b86b1ad66bd8d70 under Unity 6000.4.6f1:

    • PlayMode MessageBusProviderHandleTests: 8/8
    • PlayMode MessagingComponentProviderIntegrationTests: 7/7
    • PlayMode MessagingComponentInstallerSceneTests: 1/1
    • EditMode MessagingComponentSerializationTests: 1/1
    • EditMode MessagingComponentEditorHarnessTests: 4/4

    Total: 21/21, zero failures, skips, or inconclusives; 1.62 seconds of reported fixture duration. npm run validate:all, formatting, and commit checks also pass. The two new direct regression cases remain sub-millisecond in the latest focused run and add no waits, retries, timeout changes, or recurring workflow work.

    This strengthens the local GREEN but does not claim remote delivery or replace the supported Unity matrix. The commit remains deliberately stacked behind draft PR #588 and will be rebased and matrix-validated after that human-reviewed dependency lands.

  9. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Coverage gap: installer explicit-bus precedence

    Hypothesis

    MessagingComponentInstaller.SetExplicitMessageBus documents that the explicit bus overrides an assigned provider, but ApplyConfiguration() and CreateRegistrationBuilder() currently select the provider first. A scene configured with both therefore routes registrations to the provider bus, contrary to the public API contract.

    RED

    Add focused, frame-free tests for both observable entry points:

    • ApplyConfiguration() must bind a child MessagingComponent to the explicit bus when both sources are assigned.
    • CreateRegistrationBuilder() must build a lease against the explicit bus under the same configuration.

    The tests should fail against the current provider-first branches by observing the provider bus instead of the explicit bus.

    GREEN

    Make the installer use one explicit-first effective-provider resolution path for both entry points. Preserve provider fallback when the explicit bus is null. Run the exact fixture through the Unity MCP loop, plus relevant static validation.

    Stop condition

    Do not broaden this into installer refactoring or change MessagingComponent precedence semantics. Stop if existing documentation/tests establish provider-first behavior, or if the focused Unity fixture cannot demonstrate both entry points deterministically without waits/retries.

  10. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    GREEN: installer explicit-bus precedence

    The focused audit confirmed the public-contract mismatch and the local fix is complete.

    RED evidence

    • Added plain [Test] coverage for both observable entry points when a provider and explicit bus are assigned.
    • MessagingComponentProviderIntegrationTests: 7 passed, 2 failed as predicted in 0.2654318 s.
    • Both failures received the provider bus where the exact explicit-bus instance was expected.
    • Run GUID: e13ce9c1-3bf9-44a8-a1ab-213b6eb5a43e.

    Fix

    • MessagingComponentInstaller.ApplyConfiguration() now honors the documented explicit-bus precedence.
    • CreateRegistrationBuilder() uses the same explicit-first precedence.
    • Clearing the explicit bus is documented and tested to resume provider fallback.
    • Added an Unreleased changelog entry.

    GREEN evidence

    • Final focused PlayMode fixture: 10/10 passed, 0 failed, 0 skipped, 0 inconclusive in 0.2789423 s.
    • Framework cleanup completed; no framework/observation errors; saved scene remained clean.
    • The three new tests are frame-free and add no waits, retries, or registrations, so practical CI cost is negligible.
    • npm run format:check, npm run lint:markdown, npm run check:spelling, npm run validate:all, focused CSharpier check, commit hooks, and git show --check all pass.

    Local delivery state

    • Commit: 4e7969769bd10d61178fdb32fcaf03f6907c7278
    • Tree: fe5831c3048b88f14125a90cdd50a8ad95795487
    • Session record SHA-256: 0edcb5eff71a3194cf17bd56e1135499bde266a4bcc6ca56ce6071b7ed0d19f5

    This commit remains local and stacked behind draft PR #588. #572 remains open until delivery and the broader inventory/final-audit acceptance criteria are complete.

  11. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Coverage gap: clearing provider configuration retains a prior explicit bus

    Hypothesis

    The three Configure/ConfigureMessageBus overloads represent mutually exclusive configuration sources. The direct-bus overload always clears provider state, but the provider overload clears the prior explicit bus only when its argument is non-null, and the handle overload clears it only when the handle resolves. Therefore (IMessageBusProvider)null and MessageBusProviderHandle.Empty silently retain a previously configured explicit bus instead of reverting to the global fallback.

    RED

    Add focused coverage for both public layers and both clearing forms:

    • MessagingComponent: configure an explicit bus, then configure a null provider or empty handle; a new builder must resolve the global bus.
    • MessageAwareComponent: configure the same sequence before Awake on an inactive host; after activation it must receive from the global bus and not the prior explicit bus.

    Parameterize only the two configuration-clearing forms, use one untargeted message route, bracket live registrations with LeakWatcher, and use only the single frame needed to flush explicit destruction.

    GREEN

    Clear prior explicit-bus state unconditionally when either provider-source overload is selected, document null/empty fallback semantics, and rerun the exact affected fixtures.

    Stop condition

    Stop without changing behavior if history, documentation, or existing tests establish that null provider/empty handle intentionally mean “retain the previous explicit bus.” Do not change provider resolution, rebind semantics, route behavior, or lifecycle timing.

  12. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    GREEN: null-provider and empty-handle clearing replace a prior explicit bus

    The next public-API audit found and fixed asymmetric configuration clearing at both component layers.

    RED

    • MessagingComponent: null-provider and empty-handle cases each retained the prior explicit bus.
    • Provider integration fixture: 10 pass / 2 expected fail / 0 skip / 0 inconclusive in 0.2938604 s; GUID cabb7882-4b3d-4293-b10b-6ec944ff24d9.
    • MessageAwareComponent configured before Awake: both clearing forms still delivered on the prior explicit bus.
    • Default-bus fixture: 8 pass / 2 expected fail / 0 skip / 0 inconclusive in 0.1369261 s; GUID 1514f262-45c5-4e0b-b272-c1257df5ea47.

    Fix and coverage

    • Provider-source overloads now clear prior direct-bus state unconditionally.
    • Null-provider and empty/unavailable-handle behavior is documented as global fallback.
    • Tests observe real untargeted delivery on both prior and global buses and bracket every created registration with LeakWatcher.
    • After RED/GREEN proof, the four cases were folded into two existing override tests. The pre-change discovered counts are preserved; no test, frame yield, wait, retry, workflow, category, or timeout was added.

    Final GREEN

    • Provider integration: 10/10 in 0.2761897 s; GUID b0323611-01bf-420a-8b55-e43ef7a9e98d.
    • Default-bus fallback: 8/8 in 0.0998869 s; GUID 66083f45-1a58-49ea-bf9a-bc242f458343.
    • Zero failures/skips/inconclusives; both runs reached passive cleanup with clean scenes and no framework/observation errors.
    • CSharpier, formatting, Markdown lint, spelling, validate:all, hooks, and git show --check pass.

    Runner diagnostic

    Three preliminary runs were cancelled after the Unity framework stayed active without producing results. The first used a multi-fixture filter; two subsequent controls inherited the wedged framework state. Exact-GUID cancellation restored inactivity. These are retained only as harness diagnostics, not counted as RED or GREEN evidence.

    Local delivery state

    • Commit: e46b64add3e860ae3492aeff031bc650a5f4849c
    • Tree: 0aa3d04adf60158ed9f0d0daa3ca03db3a0573d5
    • Session record SHA-256: e38eb79d0034ccebb7ded9b6f225c4e1c6ed8b8af4869bf0c06d85d4fc50050a

    This remains local and stacked behind draft PR #588. #572 stays open pending delivery, supported-matrix evidence for the rebased revision, and its final defect audit.

  13. 7 remaining items

  14. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    GREEN: registration builders reject destroyed Unity-backed providers

    Local stacked commit 3debb653859c1ce625537270b00e88ffe671d8c7 (tree ae2f83cc30bc43c1fe027c40711ae57faaa7474b) closes the related public-builder gap.

    RED: the unchanged eight-test MessageRegistrationBuilderTests fixture reported 6 pass / 2 expected fail in 0.225988 s, GUID b5ecb457-d0a1-40dc-8d60-dab2259c9d63. A destroyed constructor provider still supplied its old bus, and a destroyed per-build provider suppressed the live constructor default.

    Fix: one Core-internal Unity-aware availability rule is now shared by registration builders, provider handles, and components. Builders select an available per-build provider, otherwise an available constructor provider, otherwise the existing null global-bus sentinel. Live-provider Resolve() == null, ordinary CLR providers, preferred buses, and lifecycle semantics are unchanged.

    GREEN:

    • focused fixture twice: 8/8 in 0.2225355 s (GUID 6eccc90a-38c5-427e-938d-7ded0a053e2a) and 8/8 in 0.0622341 s (GUID 8135ecce-10a7-4b0e-96f5-ecb68b5ca865)
    • five affected PlayMode fixtures: 35/35 in 0.2013902 s; GUID 0408c2cf-cc41-4202-83b5-33a717b33bfd
    • affected EditMode serialization/editor fixtures: 5/5 in 0.9349402 s; GUID 0bb479b6-2f6c-4c41-8079-af171192cfa7

    All accepted runs had zero failures/skips/inconclusives and clean passive cleanup with no framework errors. Assertions remain inside existing tests, adding no discovered case, frame, wait, retry, workflow work, or matrix leg.

    CSharpier, formatting, Markdown, spelling, validate:all, changed-file hooks, and git diff --check pass. The full 1,329 Node plus 2 package-writer suite passed immediately before this C#-only follow-up; no script/workflow changed afterward. The commit remains unpushed behind draft PR #588.

  15. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Coverage gap: a live per-build provider that defers skips the builder fallback

    Contract evidence. Since the original DI implementation (06e342e5), IMessageBusProvider.Resolve() has documented null as “defer to fallbacks.” The shipped registration-builder guide lists the per-build provider before the constructor provider and then the global sentinel. MessageRegistrationBuilder.ResolveMessageBus instead selects only one provider, so a live per-build provider returning null jumps directly to global and suppresses a live constructor provider.

    This is a distinct follow-up to the destroyed-provider fix. That fix intentionally preserved current live-null behavior until history/documentation could be checked; the check now establishes that behavior as an uncovered defect.

    RED. Extend the existing MessageBusProviderOptionOverridesBuilderDefault test: after proving the live override and destroyed-override cases, supply a live ScriptableObject provider whose Resolve() returns null and require the existing constructor provider's bus. Keep the discovered count unchanged and add no frame, wait, or retry.

    GREEN. Resolve providers in the documented order: preferred direct bus; available per-build provider; available constructor provider; null global sentinel. Do not call the same provider twice when both slots reference it. Preserve thrown exceptions and stop at the first non-null bus.

    Stop rule. Stop if a newer public contract overrides the original XML/guide semantics or if the existing fixture cannot reproduce the mismatch deterministically. Do not add CI work or change provider exception/lifecycle behavior.

  16. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    GREEN: live per-build provider null result now defers to builder default

    Local stacked commit 5bcb3dc2d0406a184c4d64735e47124b28744295 (tree 0b4bfca1a2e75317298abbe5f47ba62bdfb832ac) restores the provider order documented since the original DI implementation.

    RED: MessageRegistrationBuilderTests reported 7 pass / 1 expected fail in 0.2316178 s, GUID 05baaed6-e4e0-4f5e-bf2e-d559c4d0530a. A live per-build provider returned null, but the lease used the global sentinel instead of the live constructor provider.

    Fix: builders now resolve preferred direct bus → available per-build provider → available constructor provider → global sentinel. The same provider is never resolved twice when both slots reference it. Exceptions, destroyed-provider handling, and first-non-null behavior remain unchanged.

    GREEN:

    • focused fixture twice: 8/8 in 0.2346739 s (GUID 2b40ec36-4adc-45e8-8ab1-2dea3c8696d5) and 8/8 in 0.0557987 s (GUID 0c91df5f-5708-4022-8f13-fd42616f5724)
    • ordinary Runtime with existing CI exclusions: 1,519 pass / 0 fail / 0 inconclusive / 1 established editor-only skip in 6.4180119 s; GUID ed784df4-1f9e-412e-ae1e-f276f801cab9
    • Zenject, VContainer, and Reflex builder fixtures: 34/34 in 3.2711427 s; GUID 5eb7fc80-035b-47d7-9a62-52bcb6790729

    All accepted runs reached clean passive cleanup with no framework errors. The assertion was folded into an existing test, so discovered count, frames, waits, retries, workflows, and matrix topology are unchanged.

    Two diagnostics are excluded from correctness evidence: an initial misplaced local produced two compile errors and was fixed before testing; an incomplete DI assembly-name attempt discovered zero tests and was replaced by the exact asmdef selection above.

    CSharpier, formatting, Markdown, spelling, validate:all, changed-file hooks, and git diff --check pass. No script/workflow changed after the preceding full 1,329 Node + 2 package-writer run. The commit remains unpushed behind draft PR #588.

  17. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Coverage gap: DI adapters discard their container fallback for destroyed providers

    Hypothesis. Zenject, VContainer, and Reflex resolve IMessageBusProvider through an interface and test it with CLR null semantics. A destroyed ScriptableObject binding therefore appears present. The adapter creates a builder around that destroyed provider and discards its normal container-bus fallback; the builder correctly rejects the provider but can then only use the global sentinel.

    RED. Extend each existing provider-preference integration test at the same discovered count: prove a live ScriptableObject provider wins, destroy it, resolve/build again, and require the framework's scoped IMessageBus rather than global fallback. Use no frames, waits, or retries and destroy the test provider explicitly.

    GREEN. Reuse the Core-internal Unity-aware provider availability predicate (the integration assemblies already have InternalsVisibleTo) before selecting the custom provider. Preserve live CLR/Unity provider precedence and each framework's existing container fallback.

    Stop rule. Stop if a framework refuses a destroyed interface binding before adapter selection or cannot register the ScriptableObject provider through its supported API. Do not change container lifetimes, registration topology, package versions, or CI invocations.

  18. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Duplicate preregistration retry — superseded

    The original preregistration had already persisted as #572 (comment), but a connector read temporarily omitted it and prompted this retry. This comment defines no separate experiment and is retained only to make the duplicate chronology explicit.

  19. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    DI destroyed-provider fallback: GREEN

    Preregistration: #572 (comment)

    The hypothesis reproduced exactly. Zenject, VContainer, and Reflex each returned a destroyed ScriptableMessageBusProvider through IMessageBusProvider; their ordinary CLR null checks selected it and discarded the container-backed bus provider. The builder then rejected the destroyed provider and fell through to the global sentinel.

    RED

    • Unity 6000.4.6f1, the three exact EditMode integration assemblies together
    • 31 pass / 3 expected fail / 0 skip / 0 inconclusive in 2.8318733s
    • GUID a2543e09-3e5c-4461-9878-ce4e9c32894b
    • The three failures were exactly the Zenject, VContainer, and Reflex scoped-fallback assertions.
    • Passive cleanup: framework inactive, editor stopped, main stage active, saved scene clean, no framework errors.

    Change

    Each adapter now uses the existing Unity-aware MessageBusProviderUtility.IsAvailable check before preferring a resolved provider. Live-provider precedence is unchanged; a destroyed Unity provider now leaves the adapter's scoped container bus available. Coverage was folded into the three existing provider-preference tests.

    Local commit: 1c97667ebcb787d8674b99f6054740d299d23ffe (tree b00416387b2043bf5879f1652e83d6beb14d916e). It remains intentionally unpushed behind draft PR #588.

    GREEN

    • First combined run: 34/34 in 3.8446152s, GUID 17b92d15-edd0-493f-9782-2f633215a26d.
    • Persistent-editor repeat: 34/34 in 2.1135247s, GUID 60dbfbb9-32ca-42b0-b8bf-95611b7b72a7.
    • Both runs completed clean passive teardown with no framework errors.

    Discovery remains 34. This adds no test, assembly, job, package restore, player build, frame yield, wait, retry, script, or workflow work, so recurring CI time does not increase. CSharpier, Prettier, Markdown lint, spelling, validate:all, changed-file hooks, and git diff --check pass.

    An initial PlayMode selection discovered zero because these integrations are Editor-only; it completed cleanly and is excluded from correctness evidence. A pre-RED ambiguous Object compile diagnostic was also corrected before the accepted RED run.

  20. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Coverage gap: message emission extensions invoke destroyed providers

    Hypothesis

    MessageExtensions.ResolveMessageBus uses an ordinary interface null check before calling IMessageBusProvider.Resolve(). A destroyed Unity provider therefore remains selected instead of being treated as unavailable, so every extension overload sharing this resolver can route away from the documented global fallback.

    RED

    Extend and rename the existing null-provider fallback test—without adding a discovered test—to emit once through a provider returning null, then once through a destroyed scriptable provider. Require the second emission to reach the global bus. Run the existing MessageExtensionsProviderTests fixture.

    GREEN

    Use the existing Unity-aware MessageBusProviderUtility.IsAvailable guard in the single shared resolver. Rerun the fixture twice and retain the current discovery count, with no new frame yield, wait, retry, assembly, or CI invocation.

    Stop condition

    If Unity prevents invoking the extension with a destroyed provider reference, or the call already reaches the global bus, stop and report the evidence without changing production code.

  21. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Destroyed emission provider fallback: GREEN

    Preregistration: #572 (comment)

    The hypothesis reproduced. The shared MessageExtensions.ResolveMessageBus helper treated a destroyed Unity provider as non-null, invoked it, and diverted emission from the documented global fallback.

    RED

    • Existing MessageExtensionsProviderTests fixture, Unity 6000.4.6f1
    • 9 pass / 1 expected fail / 0 skip / 0 inconclusive in 0.3319511s
    • GUID fc61a16b-9a3a-4c3f-8ba8-5514af67b112
    • The only failure showed the global listener remained at one call after emission with the destroyed provider.
    • Passive cleanup: framework inactive, editor stopped, main stage active, saved scene clean, no framework errors.

    Change

    The one shared resolver now uses MessageBusProviderUtility.IsAvailable. Explicit-bus precedence, live providers, providers returning null, and the global fallback are unchanged. The assertion is folded into the existing fallback test.

    Local commit: 7bbb0e305a40340e3adf2b4e31c42a791db9cec6 (tree eb680418207b7d3ed3ce9c602d85f6a5550f014f). It remains intentionally unpushed behind draft PR #588.

    GREEN

    • Focused first run: 10/10 in 0.3516995s, GUID 7d3018f8-ecb9-4388-b549-82d46c4d2e6b.
    • Persistent-editor repeat: 10/10 in 0.057905s, GUID 5b6572b2-a0c1-471f-b16d-e2a810ba76be.
    • Ordinary Runtime scope with existing CI exclusions: 1,519 pass / 0 fail / 0 inconclusive / 1 established editor-only optimization skip in 6.3591913s, GUID 244efb13-c907-484c-892a-373439d810be.
    • Every accepted run completed clean passive teardown with no framework errors.

    Discovery is unchanged. This adds no test, frame yield, wait, retry, assembly, job, script, workflow, package restore, or player build, so recurring CI time does not increase. CSharpier, Prettier, Markdown lint, spelling, validate:all, changed-file hooks, and git diff --check pass.

  22. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Final local revision audit preregistration

    Question and baseline

    The durable supported-matrix record ends at PR #588 head 62406b037496f15dea3dbdd4ce6c7a0e93d3fab7. The current local head is 13 commits later, so that record cannot prove final-revision coverage. Current-head local evidence covers ordinary Runtime (1,519 pass and one established editor-only skip), the three dependency-injection fixtures (34/34 twice), and focused provider tests, but not every EditMode or allocation scope at this revision.

    Hypothesis

    The local stack preserves the expected assembly selection and outcomes: the complete ordinary Editor scope, all three dependency-injection assemblies, and the explicit allocation assembly have positive discovery with no new skips, failures, or inconclusives. The only ordinary Runtime skip remains the documented optimization contract that reports rather than enforces outside batch mode.

    Audit and GREEN

    1. Resolve the exact current CI assembly/category selection from the maintained workflow action and asmdefs.
    2. Compile the local head and require fresh assemblies with no package compile errors.
    3. Run the complete ordinary Editor selection and the explicit allocation assembly through Unity MCP. Reuse the already current-head ordinary Runtime and dependency-injection results only when their exact filters match.
    4. Inspect every skip/inconclusive leaf, run/cleanup identity, framework error, restored scene, and unselected test assembly.
    5. Run repository static gates if the audit changes tracked source.

    RED and stop rule

    Any failing or inconclusive leaf, new unexplained skip, zero-discovery assembly, stale binary, cleanup error, dirty scene, or CI-selection omission is a defect or audit gap. Report it and leave the final-audit checklist open. Do not change filters, assertions, categories, retries, waits, or timeouts to obtain GREEN.

    This local audit cannot replace the supported Unity matrix, Standalone player, or wallstop review. Those remain delivery gates after PR #588.

  23. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Final local revision audit result: partial, delivery gate remains

    Preregistration: #572 (comment)

    Assembly ownership

    The maintained asmdef discovery assigns every one of the 12 test assemblies to at least one ordinary or performance scope. Ordinary EditMode selects Editor, Runtime, Zenject, VContainer, and Reflex. Ordinary PlayMode and Standalone select Runtime. Allocation, benchmark, and comparison assemblies remain owned by their explicit performance scopes. No test asmdef is orphaned.

    Current local head

    • Exact CI-derived ordinary EditMode assembly and category selection: 978 pass / 0 fail / 2 skip / 8 inconclusive in 73.875222s, GUID c9f47068-9610-4142-8671-3032b4aaef90.
    • The two skipped leaves are the imported-sample guide (sample assembly absent) and the explicit documentation screenshot capture.
    • All eight inconclusive leaves are CiImportedSamples contracts. This shared host lacks Assets/DxmCiSamples; the CI harness copies the shipped sample scripts, asmdefs, metas, and scenes into its disposable project before EditMode.
    • Explicit allocation assembly: 291/291, zero fail/skip/inconclusive, in 260.976816s, GUID 09f706fa-81ec-42eb-821b-559119624184.
    • Current-head ordinary Runtime: 1,519 pass / 0 fail / 1 established editor-only optimization skip, GUID 244efb13-c907-484c-892a-373439d810be.
    • Current-head dependency-injection fixtures: 34/34 twice, GUIDs 17b92d15-edd0-493f-9782-2f633215a26d and 60dbfbb9-32ca-42b0-b8bf-95611b7b72a7.

    Every run reached passive cleanup with matching identity, an inactive framework, no framework errors, and the original saved scene clean.

    Verdict

    The allocation gate and locally executable correctness scopes are green. The preregistered final-audit GREEN condition is not met because the shared host cannot exercise CI's imported-sample preparation without mutating the user's project. I did not change filters or convert those fixture gates into passes. The #572 final-audit checklist remains open until the rebased stack runs in the disposable supported Unity matrix, including Standalone, after PR #588 and wallstop review.

    No tracked source, test, workflow, assertion, category, timeout, retry, or CI work changed during this audit.

  24. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Delivery update

    The coverage and provider fixes are rebased in PR #589. The final provider commit is e6e45012; the CI integration-selection and install-cost commits are 394b6952 and 6e458ba5.

    Delivery is now under review in #589 at head e6e45012729f2703a0d184d44c3605936fe92e5b.

    The rebase preserved the exact previously tested tree (eb680418207b7d3ed3ce9c602d85f6a5550f014f). Current-head local verification passes: 1,329 Node tests, 2 package-writer tests, validate:all, CSharpier, Prettier, Markdown lint, spelling, and diff checks. GitHub Actions is now running the supported delivery checks.

    This issue remains open for its recorded post-review and post-merge gates.

  25. wallstop commented on Sep 13, 2026

    @wallstop
    CollaboratorAuthor

    Final merged-revision audit: GREEN

    The local audit's remaining delivery condition is now satisfied. Wallstop merged PR #589 as bef2f36bdf79a92959c09390a5084c724cf4cf43 after its exact source head 2d352894cfb4b0369b3974689ec89cc4743c68aa completed all 41 checks.

    I downloaded and inspected all 12 Unity correctness artifacts from run 34777405333:

    • each EditMode leg: 977/988 passed, zero failed/inconclusive, with the same 10 graphics-dependent surface captures ignored under -nographics and one explicit documentation capture;
    • Unity 2021.3, 2022.3, and 6000.3 PlayMode: 1,520/1,520; Standalone: 1,516/1,516;
    • Unity 6000.5 PlayMode: 1,519/1,519; Standalone: 1,515/1,515, with the one version-conditioned legacy-ID oracle absent at discovery because Unity removed its reference API;
    • all four standalone process records report exit code zero, no timeout, and verified process settings.

    There are no failing or inconclusive leaves. All 12 test asmdefs remain owned by an ordinary, allocation, benchmark, or comparison scope. The explicit allocation scope passed 291/291. The internal benchmark passed 202/202. The comparison scope passed 413 cases with 66 expected unsupported-library rows skipped, and its allocation contract passed 5/5. Hosted .NET, docs, scripts, lint, formatting, spelling, links, devcontainer, and aggregate gates passed.

    The completed gap work exercises 34 Zenject, VContainer, and Reflex tests that were already compiled but omitted from existing EditMode invocations. Provider fallback defects reproduced before their fixes and now cover explicit, serialized, constructor, container, destroyed-provider, and global paths without adding discovered test cases to the provider fixtures. No Unity job, invocation, player build, frame yield, wait, retry, timeout, or exclusion was added. Exact-head hosted CI fell from 192 to 190 seconds, and comparable performance jobs totaled 1,149 versus 1,151 seconds. Coverage increased and observed CI time did not.

    No open GitHub issue currently describes an unresolved production bug; the remaining open milestone work is research, evidence, release preparation, or publication. This completes the final defect/skip/scope audit and both remaining acceptance items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions