Skip to content

Preserve callback diagnostic origins across token rebind #654

Open

Description

Current status - 2026-11-08

CORRECTNESS FIX MERGED; NATIVE LIFETIME FAILURES REMAIN. The diagnostic binding/origin correction is merged and ordinary callback regressions pass. The retained native research scope still has binding/active-bus lifetime failures. Those specific failures are not exercised by ordinary selected CI and are not resolved by this merge. Keep this issue open for the native lifetime contract; shared cost/review gates stay in #575/#503.

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.

Current status, 2026-10-30

Public PR693 remains open and unmerged at 30ada1ff2524d4d8fd3f5497dec222888853af16. All six current-source native scopes now qualify on original Unity run 41027897125 and performance run 41027897218, attempt 1. The four supported Editors each retain 1,034 PASS / 15 identical skips, including all seven optional/nullable cases. Mono/IL2CPP retain 27,813/27,809 PASS on the first three versions and 27,812/27,808 on Unity 6.5, including all eight floating cases per scope. Old inventories and frozen classifiers remain qualified.

Internal correctness has 207 PASS. Comparisons retain 470 PASS / 66 identical skips plus five separate allocation-honesty passes. The aggregate binds 14 GitHub archives, 145 raw members, 15 worker inventories and 10 logs, with source/profile/process/build-input/replay/binary identity and every cleanup chain qualified. Final receipt SHA-256: adbcd5e20c66cba97803bdee017b9e05a9ec45f0e7a73440cdd640a75ab0314a. Source/run bindings precede target raw; all original rules remain unchanged.

The formatter failure and absent wallstop code/copy acceptance keep the PR unmerged. Timing CSV allocation fields remain -1/unmeasured. Ordinary correctness does not qualify historical failure causes, manual reclamation, calibration, native cost or final consumer/shipping acceptance. Those gates and stopped studies remain unchanged.

The correction was merged through PR619. Historical PR693 source was dae52d34af14dd4ce1e10f836ac8760e092a9797. All four default Unity versions and both performance correctness scopes qualified, including retained raw/source/process evidence and all six license/lock cleanup chains. Default correctness excludes the separate manual reclamation scope. These passes do not repair or explain its retained native failures.

This issue stays open for reclamation/root attribution, lifecycle/retained/native cost and final wallstop code/copy acceptance. The formatter failure also prevents a fully green PR. Original assertions, collection windows, unfavorable observations and stopped-study verdicts remain unchanged. No collector workaround, identical retry, shipping acceptance or readiness claim follows.

The historical development record below remains retained; its draft PR heads and pending checks describe those earlier observations.

A diagnosed callback can Disable its token, retarget it to another bus and Enable again before returning. Re-registration overwrites Registration._registeredMessageBus, so the older callback records the new idle bus's traceId=0 instead of its originating bus's positive ID.

Actual unchanged public Fbdd and private 000d19e Runtime:12 cases each,6 FAIL/6 PASS with exact vectors. Three message kinds x Action/Fast x optional re-enable. All callback/history/live-count/enabled-state controls pass. Re-enable-on-new-bus cases lose the original trace. Both heads share the same failure, independent of the prior reset/retention fixes. Fifty fresh public processes per failing case:300 expected failures,0 unexpected; all frozen hashes exact.

Prospective protocol. Evidence .artifacts/perf-lab/503-rebind-diagnostic-origin-s472. Prior diagnostic anchor research rejected unconditional anchor clearing; this issue concerns mutable origin during replay, not that rejected mechanism.

Historical draft verdict; qualification incomplete

The immutable-binding correction is integrated into draft PR #619, now at SDK-only head af02e7d7f7159cb69896eb76ef14a3cded97ba64; Runtime/Editor/tests/analyzer DLLs are unchanged from qualified aeb76c2e. The PR remains unmerged. Wallstop authorizes this integration route and future commits on it.

Dispatch delegates keep immutable per-bus bindings. Same-bus replay reuses the binding; different-bus replay creates another. Running and pending frozen callbacks retain their original target. Raw user deduplication identity and retry ownership remain.

The preceding head 7e719037 passes default native correctness on all four supported versions. The current head also passes all four default Unity versions with exact prior case and outcome inventories and confirmed cleanup. Default correctness excludes reclamation tests. The allocation qualification retains 100 rebound-emission zero-allocation passes and eight forced-allocation controls across all four Editor/Mono versions at 7e719037. First activation, different-bus replay and whole-owner retained bytes remain unmeasured.

Native reclamation still fails. Frozen minimal controls show non-messaging self-cycle retention and factory-order sensitivity in the 2021/2022 packets; those cycles collect in both orders in the 6.3/6.5 packets. Empty and active messaging graphs survive both orders. These observations do not assign a collector mechanism or all bus roots. A reproduced sparse-observer gap justifies a test-only observer correction. Frozen candidate c43421d2 completed run40431597590 on all four versions with exact original case inventories and confirmed cleanup. All 36 controlled reports find zero paths within the bounded search; truncation remains explicit. The final verdict leaves root attribution unassigned. Original failures, assertions and collection windows remain unchanged. The next exact failing-player capture retains DLL/PDB identity without changing the SUT.

The original private candidate c8832b1ae708b949b72ca5449f37417548277658 and local evidence remain historical baselines. Its 52-file local review packet and seven-file private commit do not replace current-head or shipping-revision qualification.

Latest bounded callback-graph evidence: five plain cycles survive in Mono while all eight collect in IL2CPP, with all56independent controls valid. This does not assign the actual production root; IL2CPP still has binding/active-bus failures. Qualified one-run verdict and stop. No original assertion/window or Runtime fix follows.

Acceptance

  • Actual public/held initial6 FAIL/6 PASS and300 fresh expected failures.
  • Shared unchanged-Runtime700-case RED125 FAIL/575 PASS before Runtime edits; initial invalid setup run retained separately.
  • Immutable per-binding candidate covers running AND pending peers, nested/reentrant replay, direct RebindActive, handler-default changes and diagnostic toggles.
  • Shared lifecycle RED25 FAIL/125 PASS and active/default RED200 FAIL/1000 PASS, exact predicted trace failures; unchanged candidate counterparts pass.
  • Final focused2200 PASS and ten fresh processes22000 PASS. Exception/reset/stale-handle and150 CLR binding/bus lifetime controls included.
  • Full portable7836 PASS preserves all5686 prior outcomes; docs699 exact;16 copied Unity-reference C#9 semantic scopes pass. Prefrozen wrong-binding fault gives exact300 FAIL/400 PASS on the initial700 cases. Source/normal-hook hashes exact.
  • Finish current-head native correctness, affected/full scopes, reclamation, supported Unity floor and IL2CPP execution. The 25 rebound-emission zero-allocation rows pass on all four Editor/Mono versions at current head aeb76c2e (100 raw passes), with forced-allocation controls and confirmed cleanup; see the current-head subset qualification. Full reclamation and activation/owner/native cost qualification remain.
  • Measure binding allocation/retention/registration/teardown cost and decide adoption from evidence.
  • Wallstop authorizes PR Fix release verification and registration lifecycle defects #619 integration and future commits on it.
  • Finish final release code/copy review through Verify the 4.0.0 release criteria and prepare free publication #575.
  • Integrate only after qualification and verify the actual shipping revision before closing.

Retained insufficient prototype

The earlier four-file entry-snapshot prototype remains uncommitted/unstaged/unadopted at .artifacts/worktrees/472-rebind-diagnostic-origin. It repaired A but lost pending frozen B's origin; the insufficient verdict remains valid. Do not publish its unqualified changelog/guide copy. The new candidate is a separate child of clean000d, not adoption of that prototype.

CLR collection and copied-reference compilation do not prove native allocation, retained memory or execution cost. The initial private packet preceded the native work summarized above. Historical #502/#640 causes remain unassigned. No shipping-revision qualification or issue closure is claimed.

Activity

  1. wallstop commented on Oct 20, 2026

    @wallstop
    CollaboratorAuthor

    Prospective shared correction for #654.

    Extend the existing50 diagnostic-origin cases with one orthogonal enableInside dimension. Preserve all50 old test names/predicates/outcomes exactly; new true cases append an explicit name suffix, for100 total. New cases Enable inside the older callback after disable and optional retarget; controls re-enable on the same original bus. Warm the intended next bus before initial activation in new cases so global callbacks cannot observe unrelated warmup emits. Old false cases keep their original warmup and assertions. Require exact original trace/handle/history, intended bus live counts/enabled state, original staged callback replay and fresh distinct bus trace plus cleanup. Expected unchanged000d RED:25 FAIL (new enableInside+retarget) /75 PASS, all prior50 PASS.

    Freeze and execute identical final100-case fixture on unchanged000d Runtime in a separate RED worktree BEFORE Runtime editing. Then snapshot the existing diagnostic bus reference at entry of all16 actual augmented typed/global callback methods and pass that local to the existing private-base recording helper after user code. Only widen the existing anchor field to derived members within the private nested Registration hierarchy; no new field/API/observer/dependency/clock. No anchor clearing or other lifecycle change. Additional field reads on diagnostic-off callbacks are a native-cost gate, not a measured win. Add exact lifecycle guide/changelog copy.

    GREEN: same100 source/IDs PASS,10 fresh focused processes, full exact prior5686+50 outcomes (old50 already counted), docs699 prior outcomes, original unchanged public12-case harness all PASS,16 copied-reference C#9 scopes and relevant formatting/spelling/meta/validation. A separately prefrozen source fault ignores the captured origin and reads the mutable field again at the recorder; predict exact25 FAIL/75 PASS IDs, no fixture/predicate change. Retain all adverse results before amendments. Native correctness/allocation/reclamation, supported Unity/IL2CPP, cost and human review remain open. No push/integration/adoption. Stop at13:44:10UTC with exact handoff if unfinished.

  2. wallstop commented on Oct 20, 2026

    @wallstop
    CollaboratorAuthor

    Actual shared RED before Runtime changes:100 cases on unchanged000d Runtime produce exactly25 FAIL/75 PASS/0 SKIP. Failures are exactly new enableInside+retarget cases across19 typed and6 global shapes. Every prior50 passing name/outcome remains intact. All244 prefrozen owned files and2 external analyzer hashes are exact after execution; git confirms Runtime unedited. Proceeding with the declared16 callback-entry bus snapshots and explicit recorder argument, without clearing the anchor.

  3. wallstop commented on Oct 20, 2026

    @wallstop
    CollaboratorAuthor

    Prospective critical-review extension before accepting the entry-snapshot candidate: two callbacks from the SAME token can already be frozen in B's current message. A disables/retargets/re-enables the token; B's already-owed peer callback may not enter until after re-registration has overwritten its own diagnostic anchor. Capturing at callback entry might therefore repair A while still misattributing B.

    Before any commit/adoption, run12 fixed cases/head (three kinds, Action/Fast, rebind to same/different bus) against unchanged public Fbdd, unchanged held000d, and current uncommitted prototype. Register A then B under the same token/type/priority; A disables, retargets and enables once, B only records delivery. No nested emission/reset/new bus in callback. Require both user callbacks once, two actual history rows in order, exact handles, enabled/live counts, both positive B-origin IDs and cleanup. Same-bus controls should preserve both trace IDs. Prediction: different-bus public/held records[0,0]; entry-snapshot prototype may record[origin,0]. Freeze each source/harness/project before execution; retain every vector.

    If the prototype still loses the peer's origin, classify it INSUFFICIENT, keep delivery parent000d unchanged and #654 unresolved. Do not claim the initial100 passing tests as complete failure-class coverage. A future correction would need stable per-binding/per-dispatch diagnostic provenance and its own allocation/cost/native/compatibility protocol, rather than a rushed broader mechanism before the13:44:10UTC cutoff. No candidate commit/push/native payload/install/adoption until this control resolves.

  4. wallstop commented on Oct 20, 2026

    @wallstop
    CollaboratorAuthor

    Verdict: #654 remains UNRESOLVED. The entry-snapshot prototype is INSUFFICIENT and must not be promoted as the correction.

    Broader prospectively declared same-token peer controls ran36 cases (12 each on public Fbdd, held000d and the uncommitted prototype). Every callback/history/order/handle/live/enabled/cleanup setup check passes. Same-bus re-enable preserves[1,1] on every head. Different-bus public/held records[0,0]; the prototype records[1,0]. It repairs A's already-running callback but the next frozen B callback starts after its shared registration anchor was overwritten. All three source freezes remain exact. This is the same missing stable binding/dispatch provenance; do not split away the peer to claim the failure class fixed.

    Retain the narrow results, which do NOT establish sufficiency: unchanged-Runtime shared RED25 FAIL/75 PASS with all prior50 names preserved; prototype100 PASS;10 fresh focused processes1000 PASS; full5736 PASS exactly prior5686+50; docs699 exact;16 copied-reference semantic scopes complete; original public12-case probe all PASS; mutable-field recorder counterfault exact25 FAIL/75 PASS. All244 owned+2 external input hashes remain exact. No case/predicate/expectation was weakened. The adverse broader36-case result overrides an acceptance claim from those passing scopes.

    Prototype remains UNCOMMITTED/UNSTAGED/UNADOPTED in .artifacts/worktrees/472-rebind-diagnostic-origin at parent000d19ef08e0a31f53f894e4a955e9b4b4b709cd. Four modified files: Runtime/Core/MessageRegistrationToken.cs, Tests/Runtime/Core/DiagnosticOriginAfterDisableTests.cs, CHANGELOG.md, docs/guides/diagnostics.md. Frozen source, prototype-unadopted.patch, all TRX/probes/freezes and prototype-verification-and-decision.json remain under .artifacts/perf-lab/503-rebind-diagnostic-origin-s472. No native payload, commit, push or adoption for this prototype. Its copy is unqualified and must not ship.

    Latest valid delivery/coverage child stays CLEAN000d19ef (nine correctness corrections plus coverage), with Runtime identical to CLEAN01f8. Its earlier review/native-preparation packets remain intact and do not contain this prototype.

    Next correction needs immutable per-binding or explicit per-dispatch diagnostic provenance that works for already-running AND pending frozen callbacks, nested/reentrant rebinding and diagnostic toggles, without unqualified steady-state/registration allocation costs. Current flat delegates receive only message/context and can reference a replayed Registration object; a snapshot of that mutable object's anchor at invocation entry is insufficient. Declare a new candidate protocol before broader runtime changes. Native correctness/allocation/reclamation, supported Unity/IL2CPP, cost and human code/copy review remain open. No historical #502/#640 attribution, push/newPR/merge/approval/adoption/closure. Session cutoff13:44:10UTC remains in force.

  5. wallstop commented on Oct 21, 2026

    @wallstop
    CollaboratorAuthor

    Session473 prospective #654 investigation (started2026-10-21 05:56:37UTC; cutoff13:56:37UTC).

    Question: can immutable invocation binding provenance preserve running AND pending frozen diagnostics through token replay? Baseline remains clean000d19ef (nine corrections + coverage), with actual public/held different-bus peer traces[0,0] and rejected entry-snapshot prototype[origin,0]. Preserve that prototype unmodified and unadopted.

    Hypothesis: dispatch delegates must target a binding whose bus reference never changes. Prototype separate private per-kind binding objects with readonly resolved bus/token/handle and typed callback state. Registration owns the latest binding, reuses it only for the identical resolved bus, and creates another on bus change. Frozen delegates retain their own binding. No global dispatch ambient, emission clock, public API, dependency, reflection, lock or new per-emit allocation. Keep raw user delegates as dedup identities and existing teardown/retry ownership. This may add one object per first activation and different-bus replay; registration allocations/retained memory/native cost must be measured independently and are NOT claimed improved.

    Before runtime edits, freeze and run shared regression on unchanged held Runtime: preserve the previous100 diagnostic-origin cases exactly, add two same-token frozen peers over all19 typed and6 global shapes, same/different bus, nested/reentrant replay and diagnostic-mode toggles. Declare exact expanded fixture case IDs/predictions before its first execution. Assert independent callback order, handles, bus trace origins, history/call counts, live state, successful cleanup and fresh replay. Include reset/throw/stale-cleanup and retention controls before qualification; retain adverse results and amend explicitly if source behavior requires a wider correction.

    GREEN requires identical fixture/IDs, ten fresh focused processes, affected/full exact outcome comparison, prior docs outcomes, copied Unity-reference C#9/netstandard2.1 compilation, and prefrozen provenance fault reproducing the targeted trace failures with setup checks intact. Use existing allocation/reclamation tooling without weakening assertions or thresholds. Native Unity/IL2CPP allocation, correctness, compatibility and cost, plus wallstop code/copy review remain separate required gates. Supported fresh MCP probe currently exits1/JSONRPC-32002: no Unity tools; no native job launched.

    Evidence .artifacts/perf-lab/654-immutable-binding-s473; progress/session-473.md. Stop on new unexplained failures to investigate; never infer sufficiency from narrow passing tests. Local isolated child only, no push/PR/integration/adoption/issue closure, stopped campaigns or historical #502/#640 attribution. Ten inherited primary dirty hashes verified exact.

  6. wallstop commented on Oct 21, 2026

    @wallstop
    CollaboratorAuthor

    Shared RED fixture declared before first execution for session473:700 cases total. Preserve previous100 case IDs/predicates (expected25 FAIL/75 PASS). New600 FrozenPeer cases =25 actual wrapper shapes x2 same/different bus x3 nesting modes (none; emit on rebound bus; emit there then rebind and emit original) x4 diagnostic states (on; off-to-on inside A; on-to-off; off). A and B share the token/type/priority. Mode is still checked after user return, as current public behavior does. Warm replacement before activation. Independently collect user invocation order and positive scoped bus IDs, expected completion-order handles/diagnostics, live counts, staging, fresh replay and disposal; trace equality is checked after these setup controls. Expected held unchanged Runtime failures:100 new peer cases (different bus, nesting0/1, diagnostics0/1), plus25 prior single-callback cases =125 FAIL/575 PASS/0 SKIP. Nesting2 rebinding back to the originating bus is an intentional expected-pass control. No production edits yet; portable build succeeds against all82 actual Runtime files, C#9/netstandard2.1, no Unity execution. All fixture/source inputs freeze before testing. Any deviation is retained and investigated before Runtime editing.

  7. wallstop commented on Oct 21, 2026

    @wallstop
    CollaboratorAuthor

    Retained adverse initial shared run:700 cases ->625 FAIL/75 PASS. This is NOT the declared defect RED: all600 new cases stop at the live-registration setup assertion, before trace equality. I incorrectly copied the old probe's public per-handler counter expectation1 into MessageBusInspection.CountLiveRegistrations, which explicitly sums both raw registration identities/refcounts. The new fixture stages two distinct callbacks, so the correct final live count is2 on the active bus,0 on the other. Source inspection (CountLiveRegistrations/CountPriorityRegistrations) and all600 observed actual2 agree. Prior100 still has exact25 trace failures/75 passes. No Runtime edits. Correct only the two new live-count expectations1->2; retain red-v1 source/freezes/TRX/log and setup error. Freeze v2 and rerun the original declared700-case prediction125 FAIL/575 PASS before Runtime editing. No old case or trace predicate changed.

  8. wallstop commented on Oct 21, 2026

    @wallstop
    CollaboratorAuthor

    Actual corrected shared RED on unchanged held000d Runtime, before any production edit:700 cases ->125 FAIL/575 PASS/0 SKIP, EXACT prospective IDs.25 old single-callback failures stop on originating trace;100 new peers stop only on immutable running/pending trace equality after setup/order/handles/live-state/mode-count/fresh replay checks. Every other new500 peer case passes. All1839 prefrozen tracked inputs hash-exact; all82 Runtime files unedited. Retained red-v2 source/freezes/TRX/reconciliation, separately from invalid red-v1 setup run. Proceeding with declared immutable per-binding candidate; costs/native/human gates remain open.

  9. wallstop commented on Oct 21, 2026

    @wallstop
    CollaboratorAuthor

    Initial candidate v1 evidence: identical frozen700-case fixture now700 PASS/0 FAIL/0 SKIP. Portable full6336 PASS (held5686+650 new cases), docs699 PASS. Candidate introduces four cached private immutable binding types/16 invokers, readonly bus/token/handle plus typed user callbacks; raw user dedup keys and teardown ownership remain. First candidate compiler run found protected Registration.Token inaccessible from unrelated binding base; corrected by passing token/handle through the derived constructor without widening access. Both compiler logs retained; no tests used the failed build.

    Before qualification: prefrozen binding-reuse counterfault will change ONLY the four GetBinding conditions to ignore bus changes (_binding == null), keeping the same fixture. Prediction300 FAIL/400 PASS: all50 prior retarget cases, plus250 peers (different-bus nesting0/1 all4 diagnostics states, nesting2 diagnostics0/1). It retains the first immutable origin for fresh different-bus callbacks and must be rejected. Trace assertions must fail with all earlier callback/order/handle/live controls intact. No fixture/predicate weakening. Next add shared reset/throw/stale-handle and binding-reclamation controls with explicit baseline comparison; initial GREEN is not complete qualification. Native allocation/cost/floor/IL2CPP and human review remain open.

  10. wallstop commented on Oct 21, 2026

    @wallstop
    CollaboratorAuthor

    Next prospective qualification extension, keeping existing700 cases unchanged. Add150 shared lifecycle cases =25 wrapper shapes x3 modes x2 diagnostics: (0) rebind then throw exact sentinel (peer suppressed, no successful-callback record); (1) rebind then ResetState on originating bus (peer suppressed; existing reset clears scoped ID, so completed A records0 when diagnostics is on); (2) ordinary rebind with frozen peer, then remove A, prove slot reuse by a distinct handle, retry stale A removal, and emit on C to prove the new callback survives. Require live counts, exact exceptions, metadata/handle identities, callback counts, latest bus traces and full disposal cleanup. Compare identical fixture against unchanged held and candidate Runtime; expect25 baseline trace failures only (mode2+diagnostics-on),125 baseline passes, candidate150 passes. Reset's0 is existing reset semantics, not a new positive-origin claim.

    Add separate candidate-specific75 binding reclamation cases =25 shapes x2 diagnostics? Correction: proposed full matrix is25 shapes x2 diagnostics x3 lifetime controls =150 cases. Prove identical-bus Disable/Enable reuses the exact binding; different-bus activation creates another. Use NoInlining factories and weak references with strong token/neutral/new-bus roots retained: after old dispatch finishes and old bus is force-trimmed, replaced/removed bindings and old buses should collect; a disabled-retargeted but not re-enabled staged binding deliberately remains alive as positive lifetime control. No production hooks. Record actual CLR lifetime observations separately from native/Boehm behavior or allocation counts; retained historical #502/#640 causes remain unattributed. Freeze final fixture/inputs before either scope executes. No timing/GC byte estimates or weakened existing native budgets.

  11. wallstop commented on Oct 21, 2026

    @wallstop
    CollaboratorAuthor

    Extended evidence v2:1000 focused PASS/0 FAIL/0 SKIP. Prior700 IDs/outcomes preserved. New shared150 lifecycle scope on unchanged held Runtime produces exactly25 FAIL/125 PASS, only mode2+diagnostics-on at the final original-trace assertion; all exception/reset/stale-slot/fresh-replay controls run first. Candidate same150 all PASS. Candidate-specific150 CLR lifetime cases all PASS: same-bus binding identity reused; different-bus activation replaces it; replaced/removed binding AND old bus collect after completed snapshots/forced trim while token/new bus/neutral roots remain live; disabled-retargeted staging retains both as positive control and later replays successfully. This is CLR lifetime evidence, NOT Unity/Boehm allocation counts or native reclamation proof. All1839 current candidate hashes and baseline snapshot inputs exact. Evidence candidate-v2/shared-lifecycle-baseline-v1. Native/human/cost gates remain open.

  12. wallstop commented on Oct 21, 2026

    @wallstop
    CollaboratorAuthor

    Prepared25 native allocation rows in the existing AllocationMatrixTests, using exactly the shared19 typed/6 global wrapper shapes and actual original/rebound callback counts before measurement. Closures/registration/rebinding precede the existing AssertNoAllocations window; typed rows emit struct payloads, global rows emit a reused class payload to avoid conflating interface boxing with binding cost. No thresholds or existing rows changed. Rows are SOURCE PREPARATION ONLY/UNEXECUTED until supported Unity admission; no managed-allocation claim follows from CLR behavioral tests or copied-reference compilation. Updated candidate guide/changelog and internal cost comments to match per-binding origin and existing post-success/mode-toggle/reset behavior. No public shipping/adoption claim; qualification continues.

  13. wallstop commented on Oct 21, 2026

    @wallstop
    CollaboratorAuthor

    Prospective critical-review extension before local qualification: the existing peer matrix manually Disable/Preserve/Enable replays. Also cover the real active-retarget entry points without changing the established expectations. Extract its body into a shared exercise routine; preserve the exact original600 peer case IDs and predicates through a strategy0 wrapper. Add1200 cases: same600 peer arguments x2 additional strategies:1 direct RetargetMessageBus(destination, RebindActive);2 token has no explicit bus, handler default initially original, callback changes handler default to destination then calls RetargetMessageBus(null, RebindActive). Include all25 shapes, same/different bus, three nested/reentrant modes and four diagnostics states. Source shows PreserveRegistrations alone keeps accepted callbacks on their existing bus; do not confuse it with RebindActive. No production change proposed.

    Freeze and run identical added fixture against unchanged held and candidate Runtime. Expected added baseline200 FAIL/1000 PASS: different bus, nesting0/1, diagnostics0/1, both strategies; all other controls pass. Candidate expected1200 PASS; total focused candidate2200 (prior1000 unchanged outcomes +1200). Re-run affected/full/repeated/source/reference/docs checks after final source freeze. Retain any adverse result and investigate before accepting qualification. Costs/native/floor/IL2CPP/human gates remain open.

  14. wallstop commented on Oct 21, 2026

    @wallstop
    CollaboratorAuthor

    Retained compatibility failure in final-v3 copied Unity-reference compilation: Runtime/Core package and Editor compile, but runtime-test assembly fails CS0246 because this Unity NUnit payload lacks NonParallelizableAttribute. I added the attribute unconditionally on the new memory test; existing memory fixtures correctly guard it with #if !UNITY_2021_3_OR_NEWER. This is a test-source compatibility bug, not a Runtime behavior failure or passing native result. Preserve v3 source/receipts/compiler log and all CLR results. Apply the same existing conditional scheduling-attribute guard; test cases/assertions remain present on Unity, with no skip, timeout or threshold change. Then freeze v4 and rerun all affected scopes. Native execution remains unavailable.

  15. 16 remaining items

  16. wallstop commented on Oct 27, 2026

    @wallstop
    CollaboratorAuthor

    Native steady-emission allocation qualification is now explicitly reconciled at 7e719037: all25 ReboundTokenBindingEmitIsZeroAlloc rows PASS in each of the four full Editor/Mono packets from run40416014968,100 passes total. Both forced-allocating ZeroAllocationFailureReportsMeasuredCountWithoutRepeating controls PASS in EACH same packet (eight positive controls), confirming the constraint observed deliberate allocations rather than returning a vacuous zero.

    Source inspection confirms actual callback delivery on the original and replacement buses before measurement and additional delivery during measurement. Registration, bus retargeting, binding creation and closure construction occur outside the measured window. Each zero assertion warms eight action calls and one32-call wrapper, then measures32 emits using Unity's AllocatingGCMemoryConstraint. No count/byte proxy or minimum-of-retries is substituted in these rows.

    Retained case identities, XML hashes and scope limits: .artifacts/session480/binding-allocation/verdict.json, SHA256 fbd151831002ece0af190676891d85e9a6e201ab3bc4c75a9af9a7ebf70ab5af. This qualifies zero-allocation steady emission after rebind in these Editor/Mono scopes at7e719 only. Native IL2CPP allocation counts, first activation/different-bus replay allocation and retained bytes remain unmeasured. Current-head requalification and all reclamation/cost gates remain open.

  17. wallstop commented on Oct 27, 2026

    @wallstop
    CollaboratorAuthor

    Prospective retained-native layout check, separate from GC counts and timing: can the current immutable-binding footprint be resolved from the already retained 7e719 Unity6000.5.2f1 Windows64 Release IL2CPP PDB/DLL? Bind each inspected class to its source family through a constructor parameter or owning registration field, follow complete CodeView field/base records, and record native instance size and offsets. Use the already GUID/age-matched inputs and LLVM reader; do not infer layout from C# pointer counting alone.

    Scope: representative Untargeted, Targeted, Broadcast and global binding families, plus their shared base where resolvable. Baseline is the absence of a separate binding object in the earlier representation, not an assumed measured per-registration heap delta. Stop on unresolved/ambiguous class identity or incomplete records. A resolved class layout is only a native object-layout fact: it does not measure allocator overhead, object count per workload, retained ownership graph, activation/teardown cost, throughput or #511's sampled cost-center share. No production change, new dispatch or adoption decision is admitted. Evidence will be retained under ignored .artifacts/session480/binding-native-layout/.

  18. wallstop commented on Oct 27, 2026

    @wallstop
    CollaboratorAuthor

    Retained native-layout check resolves representative generated C++ sizes in the exact GUID/age-matched 7e719 Unity6000.5.2f1 Windows64 Release IL2CPP comparison inputs:

    Native source family Complete CodeView type Size
    Shared InvocationBinding base 0x58CA9 48 bytes
    Untargeted representative 0x77DE5 64 bytes
    Targeted representative 0x58CAF 96 bytes
    Broadcast representative 0x84899 96 bytes
    GlobalAcceptAll 0xD72FB 96 bytes

    The base has the16-byte Il2CppObject prefix, Token at16,16-byte handle at24 and bus reference at40. Untargeted adds two delegate references at48/56. Targeted/Broadcast add four at48/56/64/72 and a16-byte InstanceId at80. Global adds six at48 through88. Complete base/field records and source-family owner _binding pointer chains are retained. The Runtime source file is identical after LF normalization at7e719/aeb76c2e/c3af6098.

    Initial generic constructor-pointer routes were not sufficient: one exposed void-indirect storage and another the generic registration base. Those are retained as unresolved routes, not guessed class identities. An initial attempt to query a primitive CodeView index crashed LLVM14; subsequent reads guard primitive indices. Complete source-bound owner classes and their typed _binding fields independently resolve the representative typed layouts. Global's constructor parameters directly bind its class identity.

    Verdict/evidence .artifacts/session480/binding-native-layout/verdict.json, SHA256 af4b2e79d6a619ed03db9007016a705ba178531061232b0454d6814bf74d8a17. These are generated native C++ layout facts, not per-allocation heap deltas. Allocator overhead, workload object counts, pre-binding native baseline, whole-owner retention and activation/teardown/throughput cost remain unmeasured. Generic argument identities and other-version layouts are not claimed. No source, dispatch or adoption change follows from this result.

  19. wallstop commented on Oct 27, 2026

    @wallstop
    CollaboratorAuthor

    First native sparse-observer packet is qualified: Unity2021.3.45f1 at frozen c43421d2, run40431597590. Artifact12703248063 SHA256 42faa2f7821aa1f35224231e1baa8adee7eec4c248593d3b49a93aef5800d5aa; digest/size/head and exact28,053-case multiset match the depth24 parent. Result27,722 passed,330 failed,one skip. All four cleanup steps succeed.

    All nine retained reports have valid strong/weak/deep observer controls. Sparse traversal executes: five to eight cache arrays, zero to187 occupied-range slots and zero to three occupied values per report. Nodes remain at or below 1,512 and the shared scan budget is not exhausted. Every sampled strong-path count remains ZERO, with truncation true. Failures remain99 diagnostic-origin,48 consumed-context,96 disabled-token and87 global-snapshot cases. The observer correction repairs a demonstrated visibility gap but does not explain these native failures.

    Keep ROOTUNASSIGNED. These bounds still exclude runtime/native stack roots, weak/CWT edges, unsampled general-array positions and physical cache tail beyond the known _count range. No-path cannot prove absence or collector causality. Original assertions and GC windows remain unchanged. The other three versions are pending. No Runtime correction is admitted from this packet.

  20. wallstop commented on Oct 27, 2026

    @wallstop
    CollaboratorAuthor

    The sparse-cache observer experiment c43421d2 is complete on all four versions. All original case multisets are exact (28,053 cases on the first three versions; 28,052 on Unity 6.5). Every license/lock cleanup step succeeds. All 36 sampled reports pass their strong/deep/weak/cleared observer controls and find zero paths in the bounded sampled roots; truncation remains explicit. The occupied sparse ranges are being traversed. Maximum observed node counts are 1,512 / 1,743 / 1,670 / 1,583 by version. Original failures remain: 330 / 335 / 327 / 337.

    Verdict: keep the demonstrated observer gap and its locally verified repair as diagnostic evidence; reject a root-attribution or Runtime-fix conclusion from this run. A bounded no-path result is not absence, and physical MessageCache storage beyond the logical count is outside this search. Root remains UNASSIGNED. No assertions, factories, collection schedules or SUT bytes changed.

    Final verdict SHA-256: b2037bb7335d77dd227f2467cf9e47af5eef6790bedb0a65b1cdd37c9ccee47d. Raw archives, metadata, exact inventories, reports and cleanup are retained. Run: https://github.com/Ambiguous-Interactive/DxMessaging/actions/runs/40431597590

    Both prerequisite studies are now terminal with confirmed cleanup. The next declared investigation is #650's exact failing-player DLL/PDB retention, using the explicit existing-script mode after its local checks and frozen-source admission. No repeated GC, new collector workaround, factory rewrite or test-thread change is admitted.

  21. wallstop commented on Oct 27, 2026

    @wallstop
    CollaboratorAuthor

    The exact failing-player payload is now qualified from 89d41f53, run 40439192346, job 121975188778. DLL/PDB hashes match the retained capture receipt and CodeView/PDB GUID 0C56985A-7382-4845-9761-8221B5529B2C, age 1. Every original case is retained; Runtime/Editor/original test bytes match c3af6098. Cleanup succeeds.

    The IL2CPP packet has 503 cases: 494 passes / nine failures. Five original binding-lifetime rows fail, both active-graph controls fail, and two disabled-staging rows also fail in this build. Four original case outcomes differ from the preceding packet (three pass -> fail, one fail -> pass); the eight control vectors are unchanged. Keep these differences rather than asserting identical failure membership. Mono has 200 passes / 303 failures. Editor independently reproduces two #680 sharing violations.

    The actual failing binary now rejects the factory-inlining hypothesis directly: PDB marks CreateBindingLifetime noinline; it has a distinct 1,483-byte body at preferred-image VA 0x185521490; the 3,805-byte caller contains a direct call at 0x185520a40. These are preferred-image code addresses, not measured live stack addresses. Root remains UNASSIGNED; no actual stack or heap root has been captured.

    Native qualification SHA-256: d938c877342fc22e0eb826f07903da7e22b003a657936e09ec5440adf3e89c32. Exact function/admission/disassembly SHA-256: 40211b92fe245fa66237ada90d78e8b9028daf8fa16dce718e30346e2c7a99c4. Standalone archive 12705284772, SHA-256 910964c6f69e0b4e69df5ad9aedcd1593d27b4d93d00cbe44851c13311454b7a. No Runtime fix, new collection schedule, or test-thread change follows from static code alone.

  22. wallstop commented on Oct 27, 2026

    @wallstop
    CollaboratorAuthor

    Current-head aeb76c2e allocation qualification now retains all 25 rebound-emission zero-allocation rows PASS on each of the four supported Editor/Mono versions (100 total), with eight aggregate forced-allocation positive controls and all job cleanup confirmed. Every version also passes all163 Allocation-category cases and18 global-snapshot allocation cells. The existing helper uses8warmup +32wrapperwarmup +32measured, one window, no minimum/retry. Raw subset qualification and limits.

    Native/Mono reclamation, first activation, different-bus replay/owner allocation and retained/native cost remain open. The Runtime benchmark matrix is still finishing; this is a qualified Editor/Mono subset, not full run/readiness or shipping-IL2CPP allocation proof. Evidence SHA-256 d8bef42f75ac3437f0aef211dd3a99d05d6a343dae7cdf3fa88d07a354e429ec.

  23. wallstop commented on Oct 27, 2026

    @wallstop
    CollaboratorAuthor

    The one plain callback-cycle diagnostic is now qualified at4fe3a21d/run40465949290. All8plain cells collect in6.5 IL2CPP, while5of8plain cells survive the same synchronous window in Mono. All56independent controls and new storage/invocation controls are valid; source/capture/native DLL+PDB identity and cleanup match. This establishes that production messaging is unnecessary for those Mono observations, but does not assign a collector or production root. The specific model does not reproduce the admitted IL2CPP failure.

    All original515 cases remain. AOT still has five binding and two active-bus failures, with two retained original outcome exchanges. Mono retains its production lifetime failures and the new five plain failures. No Runtime fix, original assertion/window change, GC workaround, repeat, SAFE credit, integration or closure. The one-run stop is reached. Full factors/raw verdict are recorded in #650.

    Final verdict SHA-256 6d2d00755dbcca8ab8f3078bce01c1f7f261ab5ebcb3b23ab6c47b2cebf6d0d8; actual DLL/PDB GUID3F4ADFC9-1A55-4518-AC66-F9CEBBBDFA48 age1.

  24. wallstop commented on Nov 8, 2026

    @wallstop
    CollaboratorAuthor

    Current-source native qualification protocol, following the maintainer's request to broaden this session: assess the existing MemoryReclaim contracts on the live Unity 6000.4.6f1 ARM64 Mono editor against the merged runtime plus current worktree input manifest. Preserve all historical failures, frozen-study verdicts, test assertions, controls and collection windows. This is fresh current-source qualification, not an identical restart of an old stopped experiment or attribution of its cause. Run the existing Runtime MemoryReclaim category once, retain every leaf/output and framework cleanup evidence, then stop and classify failures before choosing a new mechanism. GREEN requires all selected contracts plus cleanup; a pass qualifies only this source/backend. Evidence: ignored .artifacts/s497-native/source-inputs.json and .artifacts/unity-mcp/s497-reclamation.json with runner GUID/status/cleanup sidecars. No historical cause or native-cost conclusion is inferred from a pass.

  25. wallstop commented on Nov 8, 2026

    @wallstop
    CollaboratorAuthor

    The fresh declared current-source local screen completed with all 150 diagnostic-origin cases PASS, within 6,892 total reclamation passes and no failures/skips. Exact host, source/binary hashes, GUID, complete cleanup qualification, retained local raw and limits: #650 (comment) . This Unity 6000.4.6 ARM64 Mono result does not explain historical Windows/IL2CPP observations or qualify their native cost. Original assertions/windows and stopped-study verdicts remain unchanged; no identical retry or closure follows.

  26. wallstop commented on Nov 23, 2026

    @wallstop
    CollaboratorAuthor

    Prospective binding-lifetime contrast. Compile the original 150-case binding lifetime fixture against clean c8832b1a (first immutable-binding fix), 89d41f53 (the historical failing-player source) and draft #821 20ca2b37. Run only the original MemoryReclaim category on the archived Unity 2021.3.45f1 Linux x64 SGen interpreter. Select the same 150 names on each arm. First run the same-thread fixture once per arm. Then run three fresh processes per arm with the sole diagnostic delta of running the existing binding graph factory on a worker that has joined before collection. Keep the six collection calls, binding identity, retained disabled staging, callback delivery, token replay and cleanup. Prediction for the joined contrast is 150 passes per process including 50 original live-binding/old-bus controls. Save any different observed lifetime or behavior and stop without changing assertions. Archive sources, fixture diffs, assembly bindings and NUnit XML under .artifacts/session-goal-sgen-binding-lifetime/. This targets the SGen thread/factory mechanism established in #652/#653. Windows Mono and the original IL2CPP player remain separately attributable.

  27. wallstop commented on Nov 23, 2026

    @wallstop
    CollaboratorAuthor

    Prospective independent scope from failing-player source 89d41f53. Run the unchanged eight NativeCollectionWindowControlTests cases on its archived SGen portable payload. Then preserve both factory orders, all three collection rounds, independent rooted and unrooted controls, active callback and cleanup, and execute only the two existing factories on one worker that joins before collection. Keep all code otherwise identical. Three fresh processes per variant. Predict all eight joined-worker cases pass, including both active-graph cases that failed on the historical IL2CPP player. A same-thread failure would identify sensitivity in the emulated SGen profile. A join-dependent change in both the minimal controls and the binding fixture would bound the issue to the archived profile. Keep outcome and cleanup differences, without inferring an IL2CPP cause.

  28. wallstop commented on Nov 23, 2026

    @wallstop
    CollaboratorAuthor

    Prospective root-observer cross-check following the first matched outcomes. Use the historically failed DiagnosticOrigin_Untargeted_PostFalse_ActionFalse_GlobalFalse_RetargetTrue_EnableInsideTrue_Lifecycle2_DiagnosticsFalse_BindingLifetime and its retained-staging lifecycle-1 control at 89d41f53. In both original and joined-worker variants, arm the already qualified SGen observer before the sixth original collection and dump immediately afterwards. Keep the original assertions and compare each case with its exact unprofiled match. Predict the live Binding and owned graph path in the retained-staging control, and absence of the removed binding after joined-worker setup. If the original removed binding survives, report any root or managed owner path the callback gives, or record that none reaches it. Raw data and source diffs go alongside the matrix receipts. Original IL2CPP payload

  29. wallstop commented on Nov 23, 2026

    @wallstop
    CollaboratorAuthor

    All nine joined-worker processes passed the 150 binding-lifetime cases at c8832b1a, historical failing-player source 89d41f53, and release draft 20ca2b37. The three original same-thread runs each passed all 50 live binding/bus controls and failed the other 100 at the obsolete bus assertion, after the obsolete binding assertion had passed. The retained 503-case IL2CPP packet's five binding-lifetime failures all stop one assertion earlier because the binding is alive. The SGen outcome distinguishes these failure signatures and leaves the historical IL2CPP root unresolved.

    The four matched SGen heap captures verify the live-staging path through the token, registration slot and typed registration to its binding. The removed-binding case has zero Binding objects in both original and worker snapshots. With same-thread setup, its obsolete bus still fails the original weak-reference check. The old bus root has not been identified.

    The eight historical minimal controls sharpen the contrast. In each of three original SGen runs, four cases fail because their simple negative control was allocated last. The active graph also survives if it was allocated last. Positive roots remain live in every case. Creating both graphs in the same order on a joined worker clears both negatives and all eight cases pass in each of three fresh processes. In the historical IL2CPP file both active-graph cases fail regardless of factory order, with their independent negatives cleared. No collector or fixture change for Unity follows from this difference.

    Receipt .artifacts/session-goal-sgen-binding-lifetime/qualification.json SHA-256 ce4b817f75e835903102ce58f839f65defca1f8a1807785dba4c231ce291bbbf binds the nine worker matrices, three original matrices, 48 minimal-control outcomes, eight single-case runs, the four heap snapshots and original player XML. Historical player packet

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

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions