Repository navigation
Description
Current status - 2026-11-08
PAUSED / PARTIAL RESEARCH. Many bounded lifecycle correctness fixes are now merged and their verified defect issues are closed. Native retention roots (#650/#652/#653/#654), allocation diagnosis (#640), churn cost and evidence-backed optimization decisions remain unfinished. Do not treat source cleanup as campaign completion.
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.
Part of #497 and the SubUnsub outcome in #414.
Inputs and dependencies
- perf: calibrate the IL2CPP measurement system and attribute dispatch cost #500 coordinates the measurement foundation.
- perf lab: add exact comparison twins and the MessagePipe semantic ledger #507 owns the MessagePipe SubUnsub twin and semantic ledger.
- perf lab: retain and replay content-addressed experiment evidence #508, test: build a differential bus state-machine oracle #509, and perf lab: calibrate variance, controls, power, and confirmatory inference #510 supply evidence, correctness, and decisions.
- perf lab: resolve IL2CPP cost with WPR, PMU, and native maps #511 supplies native evidence for claimed interface, atomic, or copy costs.
Exploration may begin earlier. Production confirmation waits for the #500 gates.
Purpose
Reduce registration and deregistration time, allocation calls, copied state, and retained storage without moving steady dispatch or weakening stale-handle safety.
Current representation
MessageRegistrationToken already has a slot array, doubly linked live list, and free list. This issue must not recreate that mechanism under a new name.
Concrete attributed candidates include:
- one process-wide atomic ID increment per staged registration;
- large copied MessageBusRegistration and typed deregistration state;
- Dictionary plus List ordered spill storage with a dictionary lookup during ordered iteration and O(n) arbitrary list removal.
Owned experiments
- Attribute every registration/deregistration allocation and copied byte by owner.
- Measure direct bus, direct handler, token stage/active, remove, and disable at 1/16/256/1,000 live registrations.
- Test owner-local generational handles: one token-owner identity plus slot and generation, with a burned slot on wrap.
- Keep the internal handle at or below the current 16 bytes and preserve the public factory path where process-wide uniqueness is required.
- Test a bus-owned generational registration-record arena with a small opaque built-in handle while preserving custom IMessageBus ExternalId/ExternalState behavior.
- Test a compact ordered spill store: sparse hash index to append-ordered dense records, scrubbed tombstones, and transactional density-based compaction.
- Apply the ordered-store experiment to HandlerActionCache spill first. Extend it to bus handler/priority stores only after that mechanism wins.
- Test indexed or intrusive removal separately from storage layout.
- Test bounded slabs or pools only for an attributed allocation owner.
- Prototype batch register, enable, disable, and deregister transactions that validate, invalidate, and roll back once.
- Measure delegate equality/hash cost for static, instance, capturing, equal, and duplicate delegates.
- Revisit exact-MessageBus deregistration only when perf lab: resolve IL2CPP cost with WPR, PMU, and native maps #511 still shows the relevant indirect call and perf lab: calibrate variance, controls, power, and confirmatory inference #510 makes the lifecycle bracket interpretable.
- Measure cold prewarm, high-water capacity, occupied slots, idle sweep, force trim, and retained Unity references.
Do not repeat object-only token recycling or rejected inline-plus-ordinary-spill layouts without a materially different mechanism.
RED and correctness
- Extend test: build a differential bus state-machine oracle #509 with copied, double, foreign-token, out-of-order, stale, reset, reuse, and forced-wrap handles.
- Cover owner destruction, partial failure, remove/register during dispatch, duplicate refcounts, and remove/re-add ordering.
- Use LeakWatcher around 10,000 complete cycles. Baseline qualification: 120 cases × 10,000 cycles, using the corrected watcher from LeakWatcher misses live registrations sharing an existing route container #625. Changed registration representations require their own qualification; allocation, performance and reference reclamation gates remain open.
- Return occupied slots and retained buffers to configured caps after sweep or trim.
- Clear every delegate, captured object, and Unity object reference before reuse.
- Keep every emit allocation row at zero.
- Preserve custom IMessageBus round trips and retryable failure behavior.
Acceptance
- The declared lifecycle endpoint passes perf lab: calibrate variance, controls, power, and confirmatory inference #510; the normal target boundary remains greater than 3%.
- Registration-cycle GC.Alloc calls do not increase. An allocation candidate must reduce its declared count or establish a structural zero.
- Handle size, copied bytes, probes, tombstones, compactions, and retained capacity are reported.
- Dispatch affected rows and equivalent sentinels pass their registered gates.
- Differential, lifecycle, leak, reclamation, allocation, and public-surface gates pass.
- A sealed holdout supports the result.
- Every representation receives a retained decision.
Route maps and middleware are out of scope.
Activity
wallstop commentedon Sep 11, 2026
Adjacent structural result from #573 and PR #580:
Ordinary
MessageAwareComponentsubclasses now avoid exactly three default retained registrations. Explicit string-demo opt-in still retains the same three handlers. The allocation matrix passed 90 tests locally, and the corrective headd8bd8ac57f6a5113605c17a08401eda3efdd354epasses all CI workflows, including Performance Numbers.This is a structural retained-state reduction discovered during the adoption walkthrough. It is not completion or attribution of #502's registered subscription-churn experiments. No #502 checklist item changes.
Make string demo handlers opt in (#580)
wallstop commentedon Sep 13, 2026
Bounded local experiment while the independent shipping run remains active:
RegistrationAttributionBenchmarksalready isolates direct bus, direct handler, disabled-token stage/remove, and active-token register/remove.RegistrationLifecycleBenchmarksalready measures stage, enable, disable, re-enable, remove, retarget, and dispose at 1/4/16/1,000. The issue requires 1/16/256/1,000, so 256 is the only missing cardinality; current observations have not yet been retained on this issue.RunScenario. Remove that fixture and verify exact tracked restoration afterward. This yields Mono/editor screening data without expanding recurring CI..artifacts/unity-mcp/result, identity, cleanup, and local session files.This is exploratory Mono evidence only. It does not replace the required independent IL2CPP confirmation or add a workflow job, timeout, or test case.
wallstop commentedon Sep 13, 2026
Exploratory registration-attribution result (Mono)
Preregistered method: #502 (comment)
I ran the committed attribution/lifecycle benchmarks at production revision
15ed15ce185e0d122e0ee0d15249a49914a0366a, adding only a temporary local fixture for the missing cardinality 256 cases.11fb957a-8961-40d7-93eb-2138a3715c964adecfe7c6a8abe134e94484bf56939327480531da758a1a44cf083c732cda157ad67b39bdb7e12865825cbf396e4d70b8c1fb113d7b715e8b1cc56c08eb85313bb1f8a86f8e90dacde2fcae570bc628a0b5c3c572d196760904b40cddb75c4cAllocation owner separation
This attributes one allocation / 264 bytes per cycle to token staging. Activation adds exactly one further allocation / 128 bytes per cycle. The warmed direct bus and direct handler structural layers are zero-allocation in this measurement.
Required lifecycle cardinalities
Cells are
allocations / bytes / ms.The temporary fixture (SHA-256
fdf4c93104d9344d3200238e249cce4422a21801fc1f8c43bb29580105cb6e47) and generated meta were removed. AfterAssets/Refresh, fresh assembly reflection reported the temporary type absent and the canonical lifecycle benchmark present; the editor was stopped/idle with the original scene saved and clean. The tracked worktree and branch remain exactly at15ed15ce.This is partial evidence, not a candidate verdict: it does not yet attribute every copied byte, exercise every structural layer at every live cardinality, provide IL2CPP/native evidence, or satisfy the sealed holdout. I am therefore leaving the first two experiment checkboxes open. No production source, recurring CI workflow, test filter, timeout, or coverage scope changed.
wallstop commentedon Sep 13, 2026
Additional copied-state attribution from the same fresh editor:
A dynamic IL
sizeofprobe (notMarshal.SizeOf) measured the actual managed value-type widths:MessageRegistrationHandle: 16 bytesMessageBusRegistration: 80 bytesMessageRegistrationToken.RegistrationSlot: 40 bytesTypedHandlerDeregistrationState: 176 bytesInstanceId: 16 bytesThe 176-byte teardown value is embedded inline in each token registration object, and it itself embeds the 80-byte bus-registration value. This makes the measured 264-byte staging allocation consistent with the unified registration object's inline state rather than a separate handle allocation. Source inspection identifies the pass/return/field boundaries that carry these values, but I am not treating each C# by-value boundary as an executed copy: JIT/IL2CPP can elide copies, so exact copied-byte counts remain open pending native evidence.
wallstop commentedon Sep 13, 2026
Preregistration: owner-local generational token handles
Question. Does replacing one process-wide atomic ID increment per token registration with one process-wide owner ID per token plus a token-local
{slot, generation}identity materially improve staged-registration throughput while reducing retained slot storage?Candidate. Keep the public factory path globally monotonic. Token construction mints one 64-bit owner identity; token registrations use that owner plus a 32-bit slot and 32-bit nonzero generation (16-byte handle total). Increment generation only when a token slot is issued, permanently burn a slot before generation wraps to zero, and validate owner + slot + generation. Preserve live-list order and orphan/retry semantics.
Baseline. Session 310 at exact revision
15ed15ce: disabled token stage/remove was 10,000 allocations / 2,640,000 bytes for 10,000 allocation cycles and 26.012 ms for 131,072 timing cycles; lifecycle Stage at 1/16/256/1,000 was .0004/.0033/.0696/.1332 ms. Current managed widths are handle 16 bytes and registration slot 40 bytes.RED. Before candidate measurement, add focused copied/double/foreign/stale/reused/forced-wrap checks, including proof that a wrapped slot is not reissued. Existing public-factory monotonicity and 16-byte size assertions remain mandatory.
GREEN.
MessageRegistrationHandleremains 16 bytes.RegistrationSlotfalls from 40 to at most 32 managed bytes.Stop rule. Reject and fully restore if correctness, wrap safety, allocation, public factory behavior, or size regresses; also reject if the target timing improvement is not greater than 3% or sentinels make the result uninterpretable.
Evidence. Local-only Unity MCP runs, exact hashes/sidecars, and a retained issue result. Confirmation remains gated on IL2CPP/native evidence and a sealed holdout.
wallstop commentedon Sep 13, 2026
Owner-local generational handle experiment: rejected
Preregistered method: #502 (comment)
The temporary candidate used a 64-bit token-owner epoch plus 32-bit slot and 32-bit token-local generation. It rotated the owner epoch and permanently burned the selected free slot at generation wrap; the public factory retained process-wide uniqueness.
Correctness and storage
e8931804-e579-4e17-8188-b6410ddfaa00: intended 0/1 failure.68b037d8-f822-4e74-bc57-7adb14c20dec: intended 0/1 failure.79897dc1-8cf7-41c1-965f-9bc8c8122649: 1/1 passed.38476a6e-e2a8-484d-983a-962bc5a6a5b1: 47/47 passed with no skips.RegistrationSlotfell from 40 to 32 bytes.Performance
The exact committed attribution fixture passed 4/4 in each candidate run.
Allocation counts/bytes were unchanged exactly: direct layers 0/0; token stage 10,000 / 2,640,000; token active 20,000 / 3,920,000.
Verdict: reject. Token stage was approximately 0.2% and 5.3% slower than baseline, so neither run clears the preregistered improvement strictly greater than 3%. The real eight-byte retained-slot saving does not satisfy the declared lifecycle endpoint.
All candidate and RED-test edits were removed. C# formatting restored canonical line endings; the tracked worktree is clean at
15ed15ce. A fresh post-refresh assembly contains the original_idrepresentation and none of the candidate fields or test methods. No production, test, workflow, timeout, filter, coverage, or recurring CI change remains.Primary result SHA-256 values:
4a7bb2cbf8da34795d6b9349253aca60b1a2904b1815b414d688b7ea18d1e32b918e47def506d06a81b5fd9625690538d7cf1e4895c043792f9889afc451302e90ac3c80fbd3e7171887b1619c71ce15a9306362ab82f4a7f43873ccb9e4f61a2f49c05851d0055c2aa6deb3f83ba902d2c95caffecbd62e147b7f50731445385e601352ebd7373f7f13dbbe57c3494df828ebcd5b79cac8488cd9bb75b1e17e968554434f295eae98bd1078a3379fbb56b1b5f7aa1c14bec030faceff3ee05fwallstop commentedon Sep 13, 2026
Preregistration: bus-owned registration-record arena
Question. Does moving the built-in bus deregistration record out of each public handle and into a reusable bus-owned generational arena materially reduce token staging bytes and lifecycle time without adding allocations or changing custom
IMessageBushandle behavior?Candidate. Reduce
MessageBusRegistrationto a compact discriminated union. External handles retain the existing{long id, object state}round trip. Built-in handles reuse those payload words for{owning MessageBus, packed slot + generation}. A lazy bus-local struct arena stores the current built-in fields. Deregistration validates bus identity, slot, generation, and live state; successful/no-op completion scrubs every captured reference and leaves a reference-free tombstone. Arena reuse advances a nonzero generation, and a slot is permanently burned before generation wrap. Reset scrubs all live records and invalidates their generations. Dispatch storage and paths are untouched.Baseline. Session 310 at exact revision
15ed15ce: managed widths are 80 bytes forMessageBusRegistration, 176 bytes forTypedHandlerDeregistrationState, and 264 allocated bytes per disabled-token stage/remove cycle. Warmed direct-bus churn is 0 allocations / 0 bytes and 103.687 ms for 131,072 cycles; disabled token stage is 10,000 allocations / 2,640,000 bytes and 26.012 ms for 131,072 timing cycles.RED. Add focused local-only guards for the compact layout, external id/state equality and round trip, correct-bus ownership, copied/double deregistration diagnostics, stale copies after slot reuse, reset invalidation, generation reuse/wrap, and reference scrubbing. Adapt the existing intentional-private-layout stale-bucket guard locally so it reads the arena record rather than requiring captured state in the public value.
GREEN.
MessageBusRegistrationfalls from 80 bytes to at most 24 managed bytes;TypedHandlerDeregistrationStateand the measured staging object shrink accordingly.Stop rule. Reject and fully restore if any correctness, wrong-bus isolation, copied-handle diagnostic, stale/reuse/wrap safety, reference scrubbing, allocation count, or sentinel gate regresses. Also reject unless repeated token-stage timing improves by more than 3%, even if the byte reduction is real.
Evidence. Local-only Unity MCP RED/GREEN and benchmark runs with exact GUIDs, hashes, cleanup sidecars, and a retained issue result. Any retained candidate would still require independent IL2CPP/native confirmation and the sealed holdout.
wallstop commentedon Sep 13, 2026
Bus-owned registration-record arena experiment: rejected
Preregistered method: #502 (comment)
The temporary candidate replaced the built-in handle payload with a packed slot/generation plus an arena-epoch identity. A lazy bus-owned struct array held deregistration records, scrubbed all captured references on release/reset, permanently burned a selected slot before generation wrap, and released an empty arena on force trim. External handles retained the existing
ExternalId/ExternalStaterepresentation and equality behavior.RED, correctness, and physical storage
The initial focused RED was the intended 0/2:
MessageBusRegistrationwas 80 bytes rather than the declared maximum 24.After the candidate and the stale-after-trim epoch correction:
Two useful RED corrections occurred during screening. First, dropping the arena array without changing its epoch allowed an old slot-0/generation-1 handle to alias a new array; the epoch identity fixed both interceptor and global-accept-all stale-after-trim cases. Second, counting the private array as a pooled collection changed an exact trim result; removing that counter increment restored the legacy result while retaining actual buffer release.
Steady-state attribution
Two clean repeated runs of the exact committed attribution cases passed 8/8 each (the filter also includes the four deregistration-attribution siblings).
Allocation samples were exact and repeatable:
Thus token-stage timing improved by 15.1% and 9.4%, and its object fell from 264 to 208 bytes.
Decisive lifecycle regression
Fresh-bus
Enablemust allocate the arena identity/storage. That increased registration-cycle allocation calls at every measured live cardinality:Verdict: reject. The smaller handle produces a real, repeated staging win, but the arena adds 2/4/10 allocation calls to active registration at 1/16/1,000. That violates #502's acceptance rule that registration-cycle GC.Alloc calls must not increase, so the candidate is not retained.
All candidate and RED-test edits were removed. C# formatting restored canonical line endings; the tracked worktree is clean at
15ed15ce185e0d122e0ee0d15249a49914a0366a. AfterAssets/Refresh, fresh assembly reflection reports the original 80-byteMessageBusRegistrationfields and no bus arena; the restored handle contract passes 17/17. No production, test, workflow, timeout, filter, coverage, or recurring CI change remains.The direct Unity test bridge used for this bounded experiment did not emit persistent run GUID/sidecar files, so the retained evidence is the exact revision, test/result counts, structured benchmark rows above, and this issue decision.
wallstop commentedon Sep 13, 2026
Preregistered experiment: compact ordered spill records
Scope is limited to
MessageHandler.HandlerActionCache<T>.OrderedEntries. I will not extend this representation to priority stores, registration metadata, the public API, or recurring CI.Candidate
Keep the existing two-entry inline representation. On the third distinct handler, spill into:
Dictionary<T, int>mapping each live key to its record index;Entrytogether;Clear, and no per-dispatch allocations.The dispatch hypothesis is that
ValueAt(index)can read the record directly instead of performing a second dictionary lookup afterKeyAt(index).Restored-production baseline
Fresh PlayMode run, filter
HandlerCardinality_Handler: 36/36 passed (18 contract rows plus 18 five-second perf rows).Accept/reject gates
Accept only if all correctness and allocation gates pass and repeated clean candidate runs improve spill
HandlerDispatchat cardinalities 4, 16, and 64 by strictly more than 3% each. Cardinalities 1 and 2 must remain inline and must not regress by more than 3%. Every dispatch row must remain 0 allocations / 0 bytes. Churn rows must not exceed 20,000 allocations or 3,920,000 bytes, and throughput at cardinalities 4, 16, and 64 must not regress by more than 3%.RED tests will pin direct ordered record access, O(1) arbitrary tombstoning with key/value reference scrubbing, survivor order, remove/re-add tail order, bounded density compaction, full teardown/reset reuse, and unchanged inline/spill boundary behavior. Existing dispatch, deregistration, reset/reentrancy, allocation, and storage-observation suites remain mandatory.
I will restore the candidate if any hard gate fails. This experiment adds no workflow and no recurring CI time.
wallstop commentedon Sep 13, 2026
Result: compact ordered spill records rejected
The preregistered
HandlerActionCache<T>.OrderedEntriesexperiment is rejected and fully restored.Implemented candidate
Dictionary<T, Entry> + List<T>with a sparseDictionary<T, int>and append-ordered records containing key, entry, and live state.ValueAt(index)read the dense record directly without rehashing its key.Correctness and allocation evidence
Performance verdict
Percentages are candidate versus the fresh restored-production baseline. Every retained run is shown.
The representation preserved allocation behavior but did not improve any declared spill-dispatch endpoint by more than 3%, and repeated churn results failed the regression gate. The likely saved ordered-iteration dictionary lookup did not offset the record/tombstone bookkeeping on this Mono/editor screen; no stronger causal claim is made without native profiling.
Restoration proof
_spillMap,_spillOrder,_spillOrderStart; no sparse index or record arena remains.No workflows or recurring CI work changed. Do not repeat this compact-record representation without materially different evidence.
wallstop commentedon Sep 13, 2026
Preregistered experiment: indexed arbitrary removal without a new spill layout
Question and scope
Can
HandlerActionCache<T>.OrderedEntriesremove an arbitrary spill key in O(1) by retaining its order-list index in the existing dictionary value, without adopting the rejected dense-record arena or moving steady dispatch?This experiment is limited to the current dictionary-plus-order-list spill. It does not touch registration handles, bus priority stores, public API, workflows, or recurring test duration.
Baseline extension before candidate
I will temporarily add a
HandlerTailChurnoperation to the existing five-second cardinality harness. At cardinality 3+, it repeatedly removes and re-registers the tail handler, forcing the currentList<T>.Removefallback to scan the spill order. This temporary row will first run against restored production and will not be retained as an additional recurring CI row.The existing sequential
HandlerChurnandHandlerDispatchrows remain sentinels. Their restored-production values are already retained in the preceding experiment; I will rerun the affected endpoints in the same editor after the tail baseline.Candidate
Keep
Dictionary<T, Entry>plusList<T>conceptually unchanged, but extend the dictionary value with the entry's current order index. Arbitrary removal will scrub the indexed list slot instead of scanning/removing it. Prefix teardown remains O(1). Ordered preparation compacts tombstones in place and repairs live dictionary indices. Remove/re-add still appends.This deliberately isolates indexed removal from the rejected key-and-entry dense-record layout and from transactional scratch stores.
RED and correctness
RED cases will pin that arbitrary removal leaves a scrubbed indexed tombstone without shifting later slots, preparation restores dense survivor order and indices, remove/re-add appends, prefix teardown remains bounded, clear/reuse retains storage, duplicate refcount updates preserve position, and the two-entry inline boundary is unchanged.
Existing mutation, reset/reentrancy, deregistration, reclamation, leak, allocation, and public-surface behavior remains mandatory.
Accept/reject gates
HandlerChurnat 4, 16, and 64 must not regress by more than 3%.HandlerDispatchat 4, 16, and 64 and inline sentinels 1 and 2 must not regress by more than 3%.If the candidate wins, the existing
HandlerChurnrow may be strengthened to a deterministic mixed arbitrary/prefix pattern rather than adding another five-second row, so recurring CI time does not increase. Confirmation remains blocked on #500/#510; this is a local Mono screen only.wallstop commentedon Sep 13, 2026
Baseline extension complete before the runtime candidate.
Fresh restored-production PlayMode Mono, 9/9 tail-churn rows, 45.68 s:
This is the declared arbitrary-removal baseline. The benchmark-only diff remains present locally while the candidate is tested; production is still restored at this point.
wallstop commentedon Sep 14, 2026
Result: indexed arbitrary removal rejected
The preregistered dictionary-value order index experiment is rejected and fully restored.
Baseline
A temporary
HandlerTailChurnrow repeatedly removed and re-registered the physical tail handler, forcing restored production's arbitraryList<T>.Removescan. The fresh baseline passed 9/9 in 45.68 s:The temporary row was never added to recurring CI.
Candidate and retained iterations
The candidate kept the existing dictionary-plus-order-list layout. Its dictionary value held the existing
Entryplus order index. Arbitrary removal scrubbed the indexed list slot in O(1); compaction repaired indices; prefix removal and remove/re-add ordering were preserved.All retained tail rows continued to report 20,000 allocations / 3,920,000 bytes. The final candidate focused contract suite passed 35/35, including O(1) arbitrary tombstoning, reference scrubbing, survivor order, index repair, remove/re-add order, fixed-capacity tail reuse, bounded prefix churn, clear/reuse, duplicate update, and the inline/spill boundary.
Verdict
The final representation produced a meaningful 64-entry tail-removal win, but cardinality 16 improved only 1.04%. The preregistered rule required every clean candidate run to exceed +3% at both 16 and 64. Because that target failed, broader dispatch/sequential-churn and full allocation suites were intentionally not run after the stop condition; no positive production claim is made.
Do not adopt the extra index/padding and tombstone bookkeeping for a win confined to this high-cardinality tail shape. Revisit only with a materially different workload or representation.
Restoration proof
_spillMap,_spillOrder,_spillOrderStartafter inline fields.No workflow, benchmark row, timeout, filter, or recurring CI duration changed.
429 remaining items
wallstop commentedon Nov 24, 2026
Prospective Windows AOT follow-up to the interpreter HashSet attribution. Question: how far does the retained Windows 6000.5.2f1 AOT code bind the same
MarkDirtyType → HashSet<int>.Add → AddIfNotPresent → InternalGetHashCodepath, and does it retain the generic box behind the interpreter finding? The hypothesis is that a concrete Int32 specialization can remove the generic null check and box. Freeze the current MessageBus blob, the archived BCL and emitted baseline C++ from #501. Inspect exact emitted entry points and types through the hash helper and compare with a shared or reference-type HashSet body as a control. If the actual retained #749 Windows x64 DLL/PDB expose an exact corresponding private procedure or inline site, independently bind its extent and machine-code edge. A missing edge, ambiguous receiver, or unbound optimization stops that native inference. Keep contradictory code as observed and qualify only the held type and branch. One bounded static inspection. No timing, new conversion, allocation counter, native execution, or production mutation. Evidence.artifacts/session-goal-502-windows-dirty-type/.wallstop commentedon Nov 24, 2026
The Windows AOT check found a concrete optimization for the one interpreter box attributed to
HashSet<int>.InternalGetHashCode. The current and historical sources share MessageBus blobb082472722bf9b2cb4f67fe934c02c92c0cd14bc. Seven definitions rehash through the prior Windows converter inventory. The emittedMarkDirtyTypepasses_dirtyTypeSetand a concreteint32_tthrough Add and AddIfNotPresent to the hash helper. That helper omits the null-and-box test and invokesInterfaceFuncInvoker1<int,int>. Reference sharing retains a pointer null check, while the fully shared body uses the runtime would-box query. That query alone is not a counted allocation.The actual 6000.5.2f1 Windows x64 DLL and PDB from artifact 14107006380 rehash and agree on GUID/age. The SimpleUntargetedMessage public alias resolves to a shared 178-byte body with 312 matching private procedure records at that extent. It loads the verified
_dirtyTypeSetfield at+0x158and calls the exact Int32 Add at+0x7E. Add tail-jumps at+0x12to AddIfNotPresent. At+0x61, that body calls the exact private hash wrapper in .text. CodeView identifies the inlined specialized hash helper there. Both the wrapper and separately emitted specialized helper agree after normalizing relative branch addresses. The wrapper preserves the integer in EDI, restores it to EDX, and passes it directly through the typed comparer interface call at+0x8F. This establishes where the original generic box disappears on the inspected path.Capstone and LLVM independently reproduce all seven decoded byte ranges. The initial readers refused the shared dirty-type symbol when expecting a unique named procedure. The corrected observer requires exact public location, agreeing extents and an explicitly retained private alias. The refusals remain in the receipts. Evidence
.artifacts/session-goal-502-windows-dirty-type/, qualification SHA-25658efe28c634ac4ae4391acb9028a26e06d88dc8efbe6c3ff2371a2d6bb600006, checksum manifest3596eba1a6a6fb9dbf79e26a2d2517e03c3a6ee60921a61020350d9e4b3acacc. The previous 35-allocation interpreter result stands. Current native allocation totals, downstream comparer behavior, retained storage and performance acceptance remain open.wallstop commentedon Nov 24, 2026
Prospective exact 4.0.0 allocation handoff refresh. The frozen released-versus-candidate fixture currently binds the 4.0.0 arm to archive 8302bcdcb0432ea54db51eea3cdee56714ac269ad2adf8d716e60146bb681463. The staged package for master 7461bdb has archive aa8b971ac9bbaf9555241638ad66eb5656c0ee856a715830f1ab55e7c9e0316d.
Question and hypothesis. Can the independent profiler-enabled EditMode projects use the exact staged package while preserving the fixture, callback ABI, 3.3.0 package, dependencies and compiler inputs? Expect the only 4.0.0 tar member difference to be packaging metadata, with all 226 Runtime payload members identical.
Rejection check. Reject the previous 4.0.0 tarball at the exact-candidate guard and reject any fixture, dependency, ABI, Runtime payload or compiler-input drift. Stop on extra changes or a failed replay.
Acceptance. Verify both package identities and lock-free isolated projects after a relocated restore. Recompile the two warmed-churn fixtures with the retained Unity reference profile and check their original assembly bytes. Keep the existing positive allocation control, six 4,096-operation untimed windows, registration/delivery assertions, two version orders and result retention. Carry forward the original scope. No allocation measurements are implied by compile or package preparation.
Evidence location:
.artifacts/session-goal-4.0.0-allocation-handoff/.wallstop commentedon Nov 24, 2026
The exact-stage allocation handoff passes its package, compile and restore checks. The guard rejected the older 4.0.0 archive. The 396-file comparison found only the package.json devDependencies change, with all 226 Runtime members byte-identical. Both arms replayed the retained Unity 6000.4.6f1 reference compilation with zero diagnostics and byte-identical fixture assemblies. Both restored projects retain the original manifests, fixture bytes, callback ABI selection, delivery and registration assertions, and Test Framework 1.7.0.
Local companion to the 4.0.0 readiness handoff:
.artifacts/session-goal-4.0.0-allocation-handoff/dxmessaging-4.0.0-allocation-projects.zip. All 18 members verified after relocation. Archive SHA-25631172741085774d277b1829f5e86061399fb22cf805721839d32adefffb4ed41. The embedded 4.0.0 tarball isaa8b971ac9bbaf9555241638ad66eb5656c0ee856a715830f1ab55e7c9e0316d.Next evidence is the actual profiler-enabled Unity 6000.5.2f1 capture in both version orders, with the existing forced-allocation control and six untimed 4,096-cycle windows per arm. Allocations remain unmeasured in this refresh. Steady dispatch, retained memory and shipping-player timing have their own gates.
wallstop commentedon Nov 25, 2026
Replay the deregistration attribution diagnostic across three Release players
I will compare the original H/B/B/H deregistration diagnostic in internal runs 45103955866, 45317077173 and 45537567670. The question is whether the same-path and excess-spread controls admit handler-over-bus attribution on the archived Unity 6000.5.2f1 Release players. The newest report shows handler drift beyond the original 3% limit. The two newest players share the staged Runtime tree.
Require exact archive and job binding, consistent benchmark source, all eight original trial totals and preparation directions, the selected trial's four arm durations, agreement between result and player log, and exact replay of the reported pass or refusal. Preserve every refusal, including any disagreement in the independent calculation. This is a timing diagnostic without an independent confidence interval or a registration allocation measurement. Evidence goes under
.artifacts/session-goal-502-release-attribution/.wallstop commentedon Nov 25, 2026
Only one of three archived Release diagnostics admits timing attribution
The exact provider archives for 45103955866, 45317077173 and 45537567670 match their earlier job, archive, player and cleanup receipts. The two benchmark files also match the staged candidate by source bytes. Every result marker matches its chronological player-log record. The replay preserves the eight trial totals and selects the minimum complete H/B/B/H trial in each player. The alternate trial, relaxed band and flipped verdict controls all reject.
The original 3% limits are unchanged. Direct-bus drift is within the limit in all three. Handler drift and handler-excess spread both refuse the first and last players. The only admitted center is 22.6958 ms per 131,072 teardowns. The last two players use the same staged Runtime tree, so the earlier pass cannot stand in for the later refusal. This diagnostic supplies no allocation measurement or candidate acceptance. Retain all three and run independently controlled handler attribution before ranking an optimization by this excess.
Evidence
.artifacts/session-goal-502-release-attribution/qualification.json, SHA-2560a80604d224e1d4b0a974efc549836a37bec393fc8d2f3ad51e36a9fb93ee919.wallstop commentedon Nov 25, 2026
The exact 3.3.0 and staged 4.0.0 allocation projects are rebound to master
1f691265and staged treefb64032f. Both vendor packages, fixture sources, assembly settings and test manifests match the previous packet byte for byte. Its 18-member verification changes only the run plan's source identity and the manifest checksum for that plan. The restored local archive is.artifacts/session-goal-native-host-packet-1f691265/allocation-projects-1f691265.zip, SHA-256e3c890218343bf84a574386aae6fc67acfbb86540d335038d5d424a945144af1. Both version orders and native measurements remain due.wallstop commentedon Nov 25, 2026
I isolated the frozen registration-handle change from
cff5916bon the exact staged 4.0.0 package (aa8b971a…). It removes the unused secondary reference and preserves the former null hash step. The package source was restored after the trial. The runtime DLL was the only differing execution file.Across three fresh default CoreCLR processes per arm, six 4,096-operation windows per process consistently measured 360 → 352 bytes per warmed registration. Removal was zero, and both active and inactive warmed dispatch stayed at zero in their separate windows. The forced-allocation control measured 4,120 bytes. Both builds passed the same 3,410 registration, teardown and reclamation cases. The earlier 344-byte result combined this change with a separate binding specialization.
The default processes each had 128 bytes in the third total window outside the per-operation reads. Both optimized-from-start controls reproduced the 8-byte reduction and measured zero outside the reads. The observation is consistent with an execution-mode effect and does not identify a precise allocator.
The original 3.3.0 tarball failed the portable build on its Unity-specific dependencies. A direct version-over-version allocation claim still needs Unity. The candidate has no native allocation, lifecycle, or timing verdict yet. Receipt SHA-256
235286821ed01d74136aa0a3c43addf3b247f42c34e776bc10d2632266f71b40.wallstop commentedon Nov 25, 2026
The exact staged 4.0.0 package and three controlled variants separate the unused registration-handle reference from the untargeted binding specialization. In 48 fresh ARM64 CoreCLR processes with fixed optimization, each change independently saved 8 bytes per warmed registration. Together they reduced 360 to 344 bytes (4.44%) on Action, FastHandler, and post-processor routes. Every arm measured zero bytes during removal and warmed dispatch in these fixtures. All four builds passed the same 5,519 registration, post-processing, diagnostics and teardown test identities.
I rebuilt four Unity projects with the maintained FastHandler allocation fixture. The baseline tarball is byte-identical to the staged 4.0.0 package. Each experimental tarball has the same 396 paths and differs only in the declared runtime files. The native project archive restored successfully and has SHA-256
4422f7c75a9b020e7e916c13fffaef762c207055d7cfa67b73e0b15fc98a411c. The four-arm plan verifies the archive and tree for each project and preserves the six untimed allocation windows and cleanup. It covers FastHandler in Unity. The Action and post-processor results are portable only.Native allocation, lifecycle, timing and adoption verdicts remain due. Raw observations and the repeatable verification receipt are retained locally. Receipt SHA-256
66015d1895d7c83b3b3deae01b115726d5500a62eebc64950163287a24619cbc.wallstop commentedon Nov 25, 2026
The combined registration variant at tree
69b88a14c82b7a676af3230853aed5f6540d2f78passed the complete current staged portable suite. The comparison matched every one of the 37,955 baseline test identities and outcomes. The three isolated processes reported 31,152 behavior, 5,789 retention, and 1,014 exhaustive passes, with no failures or skips. The loaded combined runtime matches the earlier four-arm trial.This completes the current portable differential sweep for the 344-byte candidate. Native Unity lifecycle, profiler allocations and timing remain due. The exact TRX comparison replays byte for byte. Receipt SHA-256
1d73f86dbc42ea4e0e921e45e7049ec5165b163e0f1ebed1b0b654d806376df7.wallstop commentedon Nov 25, 2026
I screened the added casts along the sticky replay path using the same four staged runtime builds. The portable experiment uses six process blocks per Action and FastHandler route, alternating ordinary and replay windows in both counterbalanced orders. Each of the 48 fresh processes checked the retained value, replay delivery and removal. The timing covers warmed registration plus removal. Allocation measurement remained separate.
The outcome is inconclusive. Across 96 within-process route groups, 94 exceeded 3% window spread. Ninety still contained a group above 3% when comparing windows with the same observed generation-0 collection count. The raw results retain conflicting directions and all collection counts. They cannot establish a sticky replay penalty, speedup, or equivalence for the specialization.
The prior 360-to-344-byte allocation result retains its original scope. A controlled native sticky comparison remains due if the candidate advances. The raw captures and repeatable reduction are retained locally. Receipt SHA-256
959c3517f5d6286ad06ae2bb4beaf3ea1419055d56f576c61b17174d4ecd884e.wallstop commentedon Nov 25, 2026
I ran an identical-binary control after the inconclusive sticky timing screen. All 48 fresh processes used the same staged baseline executable, runtime and workload. Both affinity conditions covered both callback routes and both bracket orders.
Both conditions failed the original 3% reference. Pinning on this host did not qualify the method. No candidate ran in this control. Stop portable sticky timing with this setup and use an admitted native host for candidate timing. The prior allocation result remains separate. Raw captures and a repeatable receipt are retained locally. Receipt SHA-256
52dbfb5d08c6d2f97089bacc5becf13a33dcaefc9e41ae2c5314ff0d2171a99d.wallstop commentedon Nov 25, 2026
Prospective release-note check for the six-allocation claim. Baseline is the current Unreleased entry at
1f691265and the original #432 Unity Mono measurement. RED is a release note that presents the six-call difference without its warmed measurement scope or its cache-retention prerequisite. GREEN is an Unreleased entry that preserves the measured number and names that scope, review against the original three retained rows and the current retention setting, and passing Markdown, strict site and protected PR checks. Stop if the claimed measurement or current cache behavior cannot be traced. New native allocation qualification remains separate. Evidence.artifacts/session-goal-release-allocation-note/.Scope the registration allocation claim to its measurement (#843)
wallstop commentedon Nov 25, 2026
#843 merged as
396b3a5eafter all 28 head checks became terminal, the three required gates passed, OpenAI reported zero findings, and CodeRabbit approved. The changelog now ties the historical six-call reduction to warmed Unity Mono tests with handler-cache retention enabled. The original three path measurements and the current retention setting support this wording.The local 4.0.0 rehearsal carries the same entry into GitHub Release notes and Unity Package Manager version history. Of 396 UPM members, only the changelog and its package manifest mirror changed. The classic package has the same two changed payloads. The current package-only NuGet restore passes all 90 existing cases. The notes and package receipt SHA-256 is
1a00299ed742226a40bd50e003127887a08652bb2fafefb36c38661e8dea51b8.Existing native allocation acceptance remains open. This change qualifies the wording and staging. It adds no profiler measurements.