Add live memory discovery and structured telemetry#7
Merged
Conversation
eric-levinson
marked this pull request as ready for review
July 11, 2026 23:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cfb.emit(type, payload)0.2.0-dev.1developer preview with explicit native artifact selectionWhy
The Brooks recruiting integration needs a safe main-process bridge for discovering and validating live recruiting structures. The first live gate showed that a one-shot scan could not cover CFB27's multi-gigabyte private address space: it stopped after 512 MiB, skipped large-region tails, and could exceed the SDK timeout.
This PR fixes the root cause with resumable pages, exact continuation cursors, chunk-boundary overlap, strict progress validation, and a bounded named-pipe retry that never duplicates a sent command.
Safety boundary
Runtime verification
A fresh supported offline Dynasty session completed a full paged scan of 10,670,854,144 eligible bytes in 69,379 ms across 319 derived pages. Three sentinel candidates were returned; two re-read with the exact 16 bytes and one transient copy changed and was correctly rejected.
Registered telemetry emitted exactly once with an advancing cursor. The game remained responsive through Recruiting -> Dynasty hub and a 639-second watch with the same PID, advancing ticks/events, and no host error. No memory write was attempted.
The runtime document distinguishes the manually tested pre-version-bump host hash from the final automatically rebuilt/smoke-tested host.
Validation
npm run checknpm test— 62/62CFB27_NATIVE_ARTIFACTSpackage inputFollow-up
Guarded compare-before-write transactions and Brooks recruiting calibration remain separate follow-up PRs. This draft should not be tagged or published until review, merge, and the release checklist are complete.