<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/runtime/src/title_write_policy.h, branch ci/exclude-legacy-cpp-runtime-tests</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=ci%2Fexclude-legacy-cpp-runtime-tests</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=ci%2Fexclude-legacy-cpp-runtime-tests'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-28T09:42:01+00:00</updated>
<entry>
<title>runtime: Round 9 WS1 — CellGuard/reopen fast paths, WC streaming copy, 16 KiB strips, 7-part mirror split &amp; coalescer tuning</title>
<updated>2026-11-28T09:42:01+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-28T09:42:01+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=84c7f469e62bbe2a1bbae9389df5557ba9fa89e1'/>
<id>urn:sha1:84c7f469e62bbe2a1bbae9389df5557ba9fa89e1</id>
<content type='text'>
- CellGuard::arm_batch(): zero-syscall all_armed + outside-s.mutex title_frames table-backed skip, MEM_RESERVE/PAGE_READONLY VQ cache with explicit cached_state, kMaxBridgeGap=32 (pin-guarded), disarm_batch/set_hot_batch for policy_.frame()
- geometry_writes::reopen(): range-scoped title_memory_map::changes_since() fast path with VirtualProtect(old) rollback
- TitleMirror::upload(): WC-aware copy_guarded_host(..., true) (MOVNTDQA), kStripBytes=16 KiB (64-piece strip mask), ~50 us WorkerPool spin, per-Unit sums slab
- 7-part refresh_page_mirror() sub-split telemetry (lock/feed/collect/arm/upload/filter/other + arm/upload breakdowns)
- watch_batch() in page_mirror_resolve_locked(), defer_fill=true only in page_mirror_chunk(), VulkanContext::cached_completed_retire_ticket(), pass_seq after write_back_titles()

AI-assisted: Antigravity (Gemini 4 Neon).
</content>
</entry>
<entry>
<title>runtime: Round 8 WS1 — PageMirror batching, direct page table, L1-strip AVX2 hashing, sub-page readback &amp; heap WC buffering</title>
<updated>2026-11-28T08:31:04+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-28T08:31:04+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=f913286051eb00c81a99a8970b8fc6fe04d45d6d'/>
<id>urn:sha1:f913286051eb00c81a99a8970b8fc6fe04d45d6d</id>
<content type='text'>
- CellGuard::arm_batch(): per-batch sync_known_protect, range-scoped changes_since(), gap-bridging (&lt;=8 cold tiles, pin-guarded), reopen() fast-path via Cell::armed_map_gen
- shadow_keep::sum_of_batch_256() hoisted AVX2/SSE2/scalar batch hash + 4 KiB L1-hot strips in TitleMirror::upload() &amp; prehash_readback_slice()
- TitleWritePolicy PageRef active lists (no frame_hot) + TitleMirror 2-level per-chunk direct page table + has_pending() fast-path + refs&gt;1 alias handoff
- Feed coalescing + watch_batch/unwatch_batch in refresh_page_mirror()
- Sub-page 256B-aligned vkCmdCopyBuffer readback, page_mirror_buffer resolve_cache, OutScratchGuard WC buffering in apply_in_place_changes/finish_in_place, lock-free reclaim_arena/update_address_guard

AI-assisted: Antigravity (Gemini 4 Neon).
</content>
</entry>
<entry>
<title>runtime: remove frame-hot mirror over-copying and measure write-back CPU time</title>
<updated>2026-11-28T04:24:53+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-28T04:24:53+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=65acf7324632faab3dd951be6c4cf5b7280af17e'/>
<id>urn:sha1:65acf7324632faab3dd951be6c4cf5b7280af17e</id>
<content type='text'>
Promoting 1x/frame pages to unguarded hot caused HotColdTracking to copy
~5,000+ pages on every submission (~50 GiB/10 s) and dirtied all textures
sharing those tiles (~119 ms/sub). Restore the submission-hot (6/8)
policy where unguarded copies beat fault+copy cost, and accumulate actual
CPU+wait time in AsyncReadback::cpu_ms instead of async wall-clock span.

AI-assisted: Antigravity (Gemini 4 Neon).
</content>
</entry>
<entry>
<title>runtime: add ReplayStateCache and two-tier frame-hot TitleWritePolicy</title>
<updated>2026-11-28T03:29:42+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-28T03:29:42+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=e9bd90750826538fe739ac2d1aba92cecda186f4'/>
<id>urn:sha1:e9bd90750826538fe739ac2d1aba92cecda186f4</id>
<content type='text'>
Cache bound pipelines, descriptor sets, dynamic graphics state, and dirty
push-constant sub-ranges across command lists in emit_commands() (with
invalidation across internal compute helpers and rendering boundaries),
and restore the two-tier submission-hot + presented-frame-hot policy in
TitleWritePolicy/HotColdTracking wired to present_serial.

AI-assisted: Antigravity (Gemini 4 Neon).
</content>
</entry>
<entry>
<title>runtime: wire Round 2 fast-paths, atomic batch uploads, and review fixes</title>
<updated>2026-11-27T23:27:12+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-27T23:27:12+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=427ec8426bdf8b0cdb598df0f6f31258a99a1ad0'/>
<id>urn:sha1:427ec8426bdf8b0cdb598df0f6f31258a99a1ad0</id>
<content type='text'>
AI-assisted: Antigravity (Gemini 4 Neon).
</content>
</entry>
<entry>
<title>runtime: Stage 4 same-queue submit merge, async geometry epoch, and O(1) floor</title>
<updated>2026-11-27T22:53:44+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-27T22:53:44+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=34173ab04b622ec5004f19b25d7fd4449ec7c0da'/>
<id>urn:sha1:34173ab04b622ec5004f19b25d7fd4449ec7c0da</id>
<content type='text'>
</content>
</entry>
<entry>
<title>runtime: restore kPromote=6/8, drop frame_hot over-copying, and wire region-batched MEM_WRITE_WATCH</title>
<updated>2026-11-27T16:44:26+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-27T16:31:36+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=4442c5b64601d8d461b74a383347d03087c211f1'/>
<id>urn:sha1:4442c5b64601d8d461b74a383347d03087c211f1</id>
<content type='text'>
- TitleWritePolicy (runtime/src/title_write_policy.h): restore kPromote = 6
  (of kHistory = 8) and cleanly remove the frame_hot / present_frame() tier
  and its dead fields/counters so 1/frame pages never trigger per-submission
  over-copying or copies on empty submissions. Keep O(dirty + hot + recent)
  active lists and sorted Guard::arm_batch() batching.
- HotColdTracking (runtime/src/title_mirror_hot_cold.h) &amp; d3d12_vulkan_device.cpp:
  remove the dead on_present() / last_present_serial hook (coordinated with
  gate-async-fixer) and unused write_watched_* getters, and cache
  region-batched MEM_WRITE_WATCH runs (bridging verified MEM_COMMIT gaps &lt;=
  1 MiB, capped at 64 MiB per GetWriteWatch call, never bridging uncommitted
  holes, with O(1) unordered_set dirty filtering and conservative dirty
  recording + split-retry on mid-run refusal so no journaled write is lost)
  so steady-state collect() runs in O(regions + dirty) without walking
  ww_pages_.
- TitleHeap (runtime/src/title_heap.h) &amp; xmem.cpp: upgrade for_each_committed()
  to emit maximal coalesced committed extents (exact complement of free_runs_,
  O(free_runs_.size()) instead of scanning all 32k span slots, never spanning
  uncommitted holes) and wire MEM_WRITE_WATCH with silent MEM_RESERVE fallback
  + title_write_watch registration/marks in mirror_heap_ready() (never
  combined with MEM_LARGE_PAGES, MEM_PHYSICAL, or section views).
- Tests: update title_write_policy_test.cpp (kPromote = 6/8 and zero copies
  of 1/frame pages on empty submissions) and title_heap_test.cpp (coalesced
  for_each_committed() tracking around decommitted holes).

AI-assisted: Antigravity, Gemini 4 Neon
</content>
</entry>
<entry>
<title>Runtime: two-tier mirror hot/cold policy, batched guards, fast fill &amp; filter_pieces hook</title>
<updated>2026-11-27T15:52:32+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-27T15:52:32+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=37fcb9f7c08d0c6a70ccfafbb4ed582fe895e97f'/>
<id>urn:sha1:37fcb9f7c08d0c6a70ccfafbb4ed582fe895e97f</id>
<content type='text'>
- TitleWritePolicy (runtime/src/title_write_policy.h): lower submission-hot
  threshold (kPromote 6 -&gt; 3 of 8), add O(active) present_frame() frame-hot
  tier (kFramePromote = 3 of 4, kFrameProbe = 16, unguarded on low-sub frames
  &lt;= 4 subs/frame and guarded on high-sub frames so mid-frame CPU writes are
  never missed and 1-write/frame pages never copy 30x/frame), and sort/batch
  page arms via optional Guard::arm_batch().
- HotColdTracking (runtime/src/title_mirror_hot_cold.h): expose on_present(),
  coalesce contiguous 64 KiB VirtualProtect re-arms in CellGuard::arm_batch(),
  and route MEM_WRITE_WATCH pages through title_write_watch::ask() with zero
  guard faults or hot_tiles conflicts.
- TitleMirror (runtime/src/title_mirror.h): add optional TitleMirrorHooks::
  filter_pieces hook passing fill_scratch_ and the 256-bit changed-piece mask
  from fill() (eliminating duplicate 64 KiB guarded copies), and coalesce
  contiguous changed pieces into single WC-friendly memcpy bursts while
  preserving exact home.sums conflict detection.
- TitleHeap (runtime/src/title_heap.h): add portable reserve() helper for
  MEM_WRITE_WATCH with silent fallback and write_watched() tracking.
- Tests: add unit tests in title_write_policy_test.cpp,
  title_mirror_hooks_test.cpp, and title_heap_test.cpp.

AI-assisted: Antigravity (Gemini 4 Neon)
</content>
</entry>
<entry>
<title>O(dirty+hot) TitleWritePolicy and read-only root view / GPU write tracking</title>
<updated>2026-11-27T14:38:50+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-27T14:38:50+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=e6031df106bf5572508c825c7d549d7b48d9a187'/>
<id>urn:sha1:e6031df106bf5572508c825c7d549d7b48d9a187</id>
<content type='text'>
- Replace TitleWritePolicy's O(N) std::map full scans in collect() and frame()
  with unordered_map + O(1) swap-and-pop active vectors (hot_list_, dirty_list_,
  history_active_), preserving promotion/demotion/probe/arm-failure semantics
  and address-ordered collect() delivery (~0.001 ms/iter for 200k cold + 100 hot).
- Add writable flag (default true) to TitleVaAliases::resolve() plus optional
  AccessResolver hook; call note_reached() iff writable &amp;&amp; to != 0 so read-only
  CBV/SRV root views do not queue GPU write-back for either aliases or mirrored
  pages.
- Pass writable=false for root CBV/SRV and writable=true only for root UAVs in
  d3d12_com.cpp; record explicit GPU buffer-write destinations (CopyBufferRegion,
  CopyTiles, CopyTextureRegion to footprint, CopyResource buffer dst,
  WriteBufferImmediate, AtomicCopyBuffer, ClearUnorderedAccessView buffer,
  ResolveQueryData) and note them for write-back at ExecuteCommandLists.
- Add scale/correctness tests in title_write_policy_test.cpp and read-only vs
  writable tests in title_va_alias_test.cpp.

AI-assisted: Antigravity (Gemini 4 Neon).
</content>
</entry>
<entry>
<title>tracking: the hot/cold policy as the page mirror's tracking (HotColdTracking), and a probe observed after its arming (RT-TRACKING-POLICY)</title>
<updated>2026-11-27T10:06:38+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-27T10:06:38+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=77ecad8b58c3f78e9c88201621b2c3b2739c16c7'/>
<id>urn:sha1:77ecad8b58c3f78e9c88201621b2c3b2739c16c7</id>
<content type='text'>
HotColdTracking (src/title_mirror_hot_cold.h) implements TitleMirrorTracking (watch, unwatch, collect) over the
geometry watch's cells with TitleWritePolicy, so it can replace GuardTracking with no change in the mirror:
collect() returns the pages written since the last collect, each armed again first, and every time the pages
written so often that they are left writable. One collect is one interval of the policy's history.

A hot page's probe is now armed at the collect after it is asked for and judged on the interval after that;
judged on the interval of the arming itself, a page written every interval looked quiet and was turned cold
(seven promotions and six demotions of one page in 200 intervals). Test title_mirror_hot_cold (Windows, real
guards and a handler that does what the layer's does first): the page written every interval stops faulting
(12 faults in 200 intervals, the warm-up and the probes), the page written every 10th faults 19 times, and the
copy the collects name equals the memory after every collect.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
</feed>
