Skip to content

Development arc units 1-46: reliability, demand-driven telemetry, lazy lifecycle, Discord dynamic component, alert/bottleneck removal, PR-audit remediation (BREAKING config) - #1

Open
InsecurePassword wants to merge 88 commits into
masterfrom
lane/u42-optimization-removal
Open

InsecurePassword wants to merge 88 commits into
masterfrom
lane/u42-optimization-removal

Conversation

@InsecurePassword

@InsecurePassword InsecurePassword commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Summary

Full accepted development arc from the reviewed baseline 0a02f53 to d7ceedb (56 commits): units 1–42, the integration-gap remediation 941faf6, review units 43–45c, and the unit 46 lane (10 commits 42132a7..d7ceedb) that resolves this PR's outstanding review findings plus a 20-finding whole-repository audit. Every unit is audit-gated: implementer → canonical diff-blob freeze → fresh independent REAudit → manager verification → commit.

Units 1–42 (historical, unchanged): reliability cause-naming + self-heal + reconnect termination + recovery journal; demand-driven telemetry (measured CPU-s/min 14.84 → 13.02 overall, idle 13.19 → 11.73); lazy lifecycle with core-always CPU/GPU/RAM/VRAM (+9.6% idle disclosed); Discord as a true dynamic component (lcdsirplus_discord.dll, 10-function C ABI, exe sheds winhttp 28→27); test determinism; and the unit-42 BREAKING removal of the entire non-hang alert/bottleneck subsystem (PROC_HANG remains the only attention-demanding feature, guards audited unweakened).

Unit 46 lane (this push, 42132a7..d7ceedb)

PR-review findings + ponytail audit dispositions, each applicability-confirmed with pre-fix red regressions recorded on disk:

  • 1bb38bf (46a) — SDK owner bookkeeping bound to owner generations (claim = AtomicU64 slot, CAS claim/release, identity-bound retire: a returning old owner can no longer steal a newer owner's window, census entry, or active-claim; circuit closes only on a health-publishing round-trip from the current generation — close-only replies never close); detached-owner bound 8, justified from the live thread/handle shape.
  • ca35f93 (46b) — SDK circuit recovery gated on the configured backend mode; explicit hid can never receive an SDK device (16-cell table-driven matrix: modes × circuit × LCore).
  • 6b9b268 (46c) — a pending, reachable PresentMon-backed dynamic fallback now demands collection: the PROC_HANG FPS_CURRENT GPU_TEMP fall-through case can no longer park PresentMon forever. Demand releases when no consumer requires it; stock-default demand word unchanged (auditor byte-comparison).
  • ed4289c (46d) — corrupt-component error-mode suppression made thread-scoped (SetThreadErrorMode + out-param restore on every return path). Measured host probe showed the old SetErrorMode raised the process-wide view — a real scope narrowing; the classification/publish/log_warn record block is byte-identical (dialog suppression per the standing recording rule; dialogs remain recorded in diagnostics).
  • 12ff06d (46f) — four regression tests pinning Discord backoff session semantics (see thread dispositions: the defect was already fixed in-lane at 941faf6; these tests prove the pins bite via transcribed pre-fix-shape reds).
  • 416d8ac (46g) — recovery-wedge closure: a timed-out SDK call that returns an error self-retires; recovery authorization is now episode-scoped, so the (circuit-open, quarantined, empty-window) state self-heals at the grown gap instead of blocking every backend until restart; the detached-owner bound is now process-wide (episode recovery no longer erases accounting for still-live owners); explicit hid is no longer blocked by the SDK-scoped circuit (normal arbitration + LCore OwnerConflict preserved); validate_pe uses checked arithmetic (corrupt vendor DLL ⇒ descriptive error, no panic-abort); backend-thread spawn failure is a published named outcome, not a panic.
  • 72ea2ba (46h) — startup cadence without clock arithmetic (explicit initial-due; first collection/render stay immediate); reload-rejection log dedup (identity-based, repair detection preserved, suppression resets on success); config watcher TOCTOU closed (detection-time snapshot installed) with a metadata fast path + bounded 16-sweep content recheck (documented latency); joined-value caps at the real 4,096-byte rule; --discord-clear-token made config-independent. Duplicate slot modules: ruled no-defect (observably identical to a single-module list; uniqueness contract is PROC_HANG-only; rejection would break legal configs for zero benefit).
  • d749c44 (46i) — PresentMon Authenticode verification bounded (one outstanding verifier thread per provider; timeouts fail closed and are counted; no thread stranding; no latch lockout) and PresentMon joined the coordinator freshness contract (stall ⇒ FPS visibly stale ⇒ unavailable; stamp advances only on accepted current-generation data); ETW session cleanup runs even when the child-stop path times out; parked GPU loops republish explicit unavailable rows after config applies; Discord component timestamps use checked SystemTime arithmetic (overflow ⇒ no timestamp, lifecycle verified); Discord worker-spawn failure published as a retryable unavailable outcome.
  • 1028847 (46j) — dead surface removed (CPU_CACHE_TEMP/CPU_FREQ_TEMP modules, headset_estimate_hours key — with stated compatibility consequences: previously-legal configs naming them are now rejected); blanket dead-code allowances retired under a compiler census (dead rows 0); PresentMon signer pinned by thumbprint derived from the tracked artifact; docs/inventories reconciled (module inventory 52→50).
  • d7ceedb (46k) — the registered sdk test contention-flake family eliminated test-region only: the primary failure was a self-poisoning assert (read inside the assertion, panic poisons the shared mutex ⇒ 13-row cascade); fix = snapshot-under-guard, assert-after-drop. Production slice byte-identical; assertion counts and message-literal multisets verified equal (nothing weakened).

Config migration (breaking)

Retired keys (17, unit 42) as below, plus headset_estimate_hours (was parsed/validated/ignored since it had no consumer) and retired modules CPU_CACHE_TEMP, CPU_FREQ_TEMP (no producer existed; they could never display). Old configs naming them are rejected with precise diagnostics (--validate-config exits 2; hot reload keeps last-valid). The tracked template is migrated: 50 modules / 105 parser keys / 79 template keys; default slot 3 = THERMALS POWER_LIMIT. Compatibility note: the watcher now records detection-time snapshots (a save landing mid-reload is applied on the next cycle, never recorded-as-applied unparsed).

Build layout

Unchanged: LCDSirPlus.exe with lcdsirplus_discord.dll beside it; use --workspace. Package payload verified: the DLL is in the portable tree (Build.ps1:195), installer staging + LCDSirPlus.iss [Files] (:213/:92), reproducible-build byte-equality + export (Test-ReproducibleBuild.ps1:247-251/:288/:318), and asserted by Package-Test.ps1 inventories + paired-hash proof (:528/:545/:1515/:1522-1530) — entered at 941faf6.

Tests & quality (current validation at d7ceedb)

  • Workspace suite: 637 passed / 0 failed / 11 ignored (app bin) + 32/0/0 (component) + fixture self-spawn row; 11 ignores are the named hardware/live tests; 0 suppressions; totals grew monotonically across the lane (581 → 604 → 637), never shrank.
  • Gates at this head, run by auditors on fresh targets: cargo fmt --all -- --check 0; cargo clippy --workspace --all-targets [--release] --locked -j 1 -- -D warnings 0/0; cargo test --workspace --release --locked -j 1 green; scripts\Test.ps1 -ReleaseOnly EXIT=0 (incl. documentation/fmt/clippy/suite sections).
  • The full Test.ps1 (lifecycle smoke + hardware transport; briefly drives the physical panel) is a consented step on this machine and has not been run at this head — deliberately not claimed.
  • Independent audits: per-unit REAudit receipts (WO-U46{A,B,C,D,F,G,H,I,J,K}-AUDIT, all PASS, token-verified 0-miss citations) + a whole-lane final audit (LANE-46-FINAL-AUDIT: 10/10 freeze-blobs equal their commits, standing protection-hash set reproduces at head, 20-finding disposition audit, push-readiness GO).
  • Historical unit-42 measurements (CPU-s/min bands 13.68/11.86, exe size deltas, 17 h instance records) describe pre-46 builds; the 46-lane changes are behavioral hardening (demand word unchanged on stock defaults), and current-head perf bands are being re-measured on the live soak; no CPU claim is made for d7ceedb.

Known limits (stated honestly)

  • Physical hardware acceptance (RP/E-list/B6/G13 campaigns) and the live Discord OAuth path remain human-consented lanes; no hardware path was exercised in the 46 lane (proven through shipped seams).
  • Named deferral: the direct-HID write path re-checks device ownership with a process-list snapshot per frame (ownership-handover guarantee); coalescing is a queued unit — kept because correctness beats idle-CPU.
  • Live-instance memory band on the deployed pre-46 build shows gentle private-byte growth (handles flat); attribution unit queued; no 46-lane code is implicated (not deployed).
  • Packaged PDF manual lags the 50-row table (regeneration queued); PresentMon ~6/min WARN ladder under game-FPS panels is demand-by-design logging; TerminateProcess semantics unchanged (hang guards preserved, hang.rs zero hunks).

Deployment state

The live instance on the development machine runs the pre-46 fallback build (exe 992,768 B DE9B9DEE…, pid 31292, 0 [ERROR] across soak) — the unit-46 content is not deployed; deploy/swap is an owner decision. Candidate pair for d7ceedb built in isolation and hash-recorded: LCDSirPlus.exe 1,010,176 B 6637006E1465AE14…644CC + lcdsirplus_discord.dll 190,464 B 4AD54B90190EC3AF…F0BA (artifacts/phase3/builds/u46-final-target/release). Merge, master updates, and installation remain owner decisions.

Q-1a partial conversion accepted: the 15 ms device window at mod.rs:683 sits inside the production range, so no 2 s bound applies. Q-4 (unreturning_owner load sensitivity) queued as WO-QA-04; Q-3 (hang.rs real-time bound) stays manager-scope.
Driven via the QA-02 announce/block/release-after-assertions pattern; 1 ms bound byte-kept; audit R2 theorem: no reply can land during the timed call in any interleaving. Count parity 529/0/11.
F-b: TC-4 token carried into the provider health record and drawn under strict precedence RC-5 > N DOWN > token > OK; zero deletions, goldens unmoved, hang.rs untouched; audit T6: visible prefix probe-i... collision-free, full token in record + log.
WO-QA-05: replace the 30 ms wall-clock span in the alloc-window load test with a self-measured actor witness; asserts (a)/(b) verbatim, (c) predicate verbatim + additive witness. Audit A2: provability chain re-derived (Relaxed bump -> SeqCst publish, N=12, polluters never cohort). C3 clippy fix: iterator-form loop. Test region only; QA-01 infra 7E26A6CC byte-identical.
F-4: INSTRUCTION-MANUAL gains the probe-indeterminate entry (count meaning, precedence, per-slot truncation probe-.../probe-i...) and the agreed terminal-mark sentence verbatim; EC-8-pattern machine pins in telemetry test region. Audit D2 refuted 2/13 overstatements (no-target claim; blanket probe-i... label); remediation landed per prescription with lockstep pins, refuted substrings absent. Suite 534/0/11; terminal-mark paragraph byte-identical.
WO-F3-NET: the EC-8 audit's proven gap (post-probe re-check L263-276; deletion gave full-suite exit 0) is now loop-driven covered by 3 mid-probe scenarios (generation bump, policy-content flip, disable) via synthetic channel-handshake probes. Seam = single additive probe fn-pointer param, production spawn call-identical; seam-removal fails compile. Audit P-a reproduction: same deletion -> 534 passed; 3 failed; 11 ignored. !active() disjunct ruled defensively redundant (F-A register). EC-8 network row cites shifted +1.
WO-TEL-B R2: loop-local generation trackers + conditional last_attempt clears at the four sampling loops (8 semantic additions, after the generation read, before the cadence gate; network-worker equivalence). Verified structurally per the superseded contract: audit T2 24/24 site checks; honesty gate T3: no hardware-free production-sensitive behavioral test exists (real-thread paths do live provider I/O; hardware-free content effects are idempotent) - behavioral coverage NOT passed, registered as WO-TEL-C seam candidate (4 injected samplers; not added). Auditor-deleted telemetry.rs restored byte-exact (DA1F325C; canonical 430ff71f re-verified at exit). Suite 538/0/11 incl. structural include_str! pin; ARCHITECTURE lockstep.
Drop the old vector on decoded leave or nonempty, different channel ID. Keep same-ID and current malformed-empty-ID reuse and preserve tracker membership, order and flags. This is not an active-roster cap.

Independent GO on 98f54dbebf7f4ce9f4adcde2ebf284e078c5a268. Baseline and integrated clear-only mutation failed the intended capacity assertion; restored control and all 15 Windows gates passed. Staged 1024-member vector retention falls 81920 to 320 B on a two-member handoff, and to zero on leave. Repeated-switch CPU +2.17%, repeated leave +1.11%; steady same-ID inconclusive. No whole-app CPU or RAM claim.
@InsecurePassword

Copy link
Copy Markdown
Owner Author

Unit 65 (WO-OPT15 / O10 roster-boundary release) is on this PR. Independent GO on 98f54dbe, no P1/P2. Only leave and nonempty different-ID transitions release the old speaker backing; same-ID refresh reuses it. Membership/order/flags and ABI stay unchanged.

  • Matched Tracker fixture retained 81,920 → 320 requested vector B on 1,024→2 handoff, and 81,920 → 0 on leave. Steady same-ID CPU direction is inconclusive; repeated switch CPU +2.17%, repeated leave +1.11%. This is an explicit transition-only retention tradeoff, not a steady-RAM or CPU win.
  • Real baseline and clear-only mutant failed the intended exact capacity assertion. Restored exact control and all 15 Windows gate legs passed: 748 distinct workspace release passes, both original Test.ps1 -ReleaseOnly runs 752 distinct each, no failures and 11 existing ignores.
  • Active roster remains unbounded across a selected session; separate 1,024-unique-ID growth measurements do not certify a cap. No app-wide CPU/RAM, live Discord, credentials, app/device launch, deployment or merge. Remote master unchanged.

Use caller-owned graph bins and traverse the occupied ring in chronological order. Preserve exact elapsed windows, gaps, equal timestamps, rollback behavior, and existing graph geometry.

Independent GO for FINAL2 16a4b1fed5d513f327e46b62895c50a4175e6658. Baseline and actual old-path mutation reproduce four extra dual-disk allocations; exact restored control passes. Staged pixel digest matches c0d9082394103fb4. Equal-work graph helpers CPU -35.00% with 23 valid pairs; offline only. All 18 Windows gates pass, 750 distinct release and both original Test.ps1 -ReleaseOnly runs 754 distinct each.
@InsecurePassword

Copy link
Copy Markdown
Owner Author

Unit 66 (WO-OPT11 / O9 graph history) is on this PR. Independent GO on 16a4b1fe, no P1/P2. Graphs fill caller-owned bins in ring order without allocating bin vectors or cloning retained samples. Pixel digest c0d9082394103fb4 matched the old six-frame history fixture, including wrap and rollback.

  • Real disk graph baseline/mutant had 8 allocation calls versus 4 for its label control; restored candidate had no extra allocations over that control. The separate 320-entry single-series probe moved from 2 calls / 5,600 requested B to zero.
  • Matched synthetic graph helper CPU −35.00% (23/24 pairs, 95% interval −35.49% to −34.50%); wall −34.85%. This does not establish whole-app CPU, resident RAM or panel latency.
  • FINAL2 test-only lint repair did not change any assertion or production behavior. All 18 isolated Windows gates passed: 750 distinct locked release passes, both original Test.ps1 -ReleaseOnly runs 754 distinct each, 0 failures and 11 existing ignores. No live app/hardware, deployment or merge; remote master unchanged.

Apply the existing fixed-width formula once and select the fitting UTF-8 scalar boundary. Keep the existing exact-fit, narrow-width and ASCII ellipsis behavior.

Independent GO on c08d92daedd8ec039e1f339ebf8d87b7b389c48f. Release baseline and rebuilt mutation reproduce 1,136 vs 1 clipped allocations; byte-exact restored control passes. Short label timing is inconclusive; long fixture wall is lower but fast CPU is below two ticks. All 18 isolated Windows gates passed with 751 distinct locked release tests and both original release-only runs 755 distinct.
@InsecurePassword

Copy link
Copy Markdown
Owner Author

Unit 67 (57d3c6d, WO-OPT16 / O9 bitmap text) is on this PR. Independent GO on exact c08d92da, no P1/P2. Clipping chooses the same UTF-8 scalar prefix and ASCII ... for the existing width rule; exact fit, narrow widths and all six renderer goldens are unchanged.

  • Actual release baseline and rebuilt old-path mutation failed the clipped allocation oracle at 1,136 vs 1; exact restoration and rebuild passed. Counts include allocation and reallocation operations. Requested bytes are not resident RAM.
  • Short-label paired CPU and wall were inconclusive. For a deliberately long clipped input, wall fell 99.9509% in 11 valid pairs; candidate CPU was below two clock ticks, so there is no numeric CPU ratio or whole-app/panel claim.
  • All 18 isolated Windows checks passed: 751 distinct locked release tests and 755 in each of two unchanged Test.ps1 -ReleaseOnly runs, 0 failures and 11 existing ignores. No live app or panel, deployment, or merge; remote master unchanged.

Borrow the checked 992-byte report from the compared key and retain the same allocation only after the existing guarded device write succeeds. Keep wire equality, raw frame progress, replay, close/refusal and SDK behavior unchanged.

Independent GO on 1d20e2565709b6c2c02aaa5fe989543203f92dec. Exact old and rebuilt mutant pack counts 2/1/2; candidate 1/1/1 with identical two full reports and ordered acknowledgments. Offline equal-work CPU -39.58% over 12 pairs, requests 5 to 3 per group. All 18 Windows gates pass, 752 distinct locked release and 756 in each unchanged release-only run.
@InsecurePassword

Copy link
Copy Markdown
Owner Author

Unit 68 (WO-OPT18 / O9 HID report reuse) is on this PR. Independent GO on exact 1d20e256, no P1/P2. The worker reuses the compared 992-byte report and retains its key only after the existing guarded native write succeeds. HID owner checks, refusal, shutdown and replay are unchanged; SDK is unchanged in this unit.

  • Scripted worker baseline/rebuilt mutant packs 2/1/2, candidate 1/1/1. The same two exact reports reach the recorder in order, with no write for the wire-equal middle frame and the same raw frame retirement. Byte-exact restoration and fresh build pass.
  • Offline packing/comparison/retention CPU −39.58% (12 equal-work pairs, 95% interval −40.28% to −38.87%); allocation meter 320 → 192 for 64 groups, 317,440 → 190,464 requested bytes. The timed cell excludes transforms, native writes and ownership checks; no whole-app CPU/RAM or panel latency inference.
  • All 18 isolated Windows checks passed: 752 distinct locked release tests and 756 in each unchanged Test.ps1 -ReleaseOnly run, 0 failures, 11 existing ignores, protections unchanged. No app/hardware launch, deployment or merge; remote master unchanged.

Copy the normalized key into the existing reusable session buffer, never lend the worker key to an owner. Keep the owned request/reply lifecycle, refusal, timeout and quarantine behavior unchanged.

Independent GO on a8fa54ffa45ccc11b18fe8f002021d3b9c589b99. Actual old-path mutation reproduces one extra 6880-byte key allocation per warm changed write; exact restored control passes with identical bytes and owner payload pointer. Matched offline CPU -41.37% and -17.88% in two shapes, 12 pairs each. All 21 Windows gates green, 753 distinct locked release passes and both original release-only runs 757 each.
@InsecurePassword

Copy link
Copy Markdown
Owner Author

Unit 69 (WO-OPT19 / O9 SDK compared-key reuse) is on this PR. Independent GO on a8fa54ff, no blocking P1/P2. The worker reuses the normalized comparison key and still sends a separate session-owned payload, recycled only after the existing owner reply. Refusal, error, timeout, replay and quarantine semantics are unchanged.

  • Real scripted owner baseline and rebuilt old-path mutant had one extra 6,880-byte allocation per warm changed send. Candidate passes with exact payload bytes, same separately owned session buffer and original comparison key retained. Existing owner exclusivity and payload reuse checks pass.
  • Matched offline encode/compare/fill/retain CPU −41.37% with one wire-equal frame per change and −17.88% with seven (12/12 pairs each). This cell excludes real owner handoff, native SDK and I/O; it does not establish whole-app CPU, resident RAM or panel latency.
  • All 21 isolated Windows checks passed: 753 distinct locked release tests and 757 in each original Test.ps1 -ReleaseOnly run, 0 failures, 11 existing ignores, protections unchanged. No live app, hardware, deployment or merge; remote master unchanged.

Preserve stable score-and-ID order and avoid scoring zero or one eligible row. Keep explicit override, vendor fallback, and exact sensor validation behavior unchanged.

Independent scoped GO on 87e31796a5a871bdbd8886f4b7d9768bfe29422f. Old-sort RED 384 vs 97 scores; restored V2 passes. Staged paired CPU -2.89% singleton, -92.28% many selection, -48.75% many ingest; zero inconclusive. Original 20/21 gates and first plain retry hit unexplained PresentMon test teardown; fixed exact original-command pair passed parent/candidate (753/756 distinct). Original release-only runs 760 each; final integrated acceptance must disclose both reds and any recurrence.
@InsecurePassword

Copy link
Copy Markdown
Owner Author

Unit 70 (WO-OPT14 / O11 LHM selection) is on this PR. Independent scoped GO on 87e31796, no P1/P2. Single-pass selection preserves stable score/ID ties, Unicode scoring, exact selectors, and vendor/fallback semantics. The shipping sort performed 384 vs 97 scores in the exact regression; rebuilt mutation reproduced it and byte-exact restored V2 passed. V2 preserves zero scoring for a lone eligible sensor; the measured singleton-regressing V1 was not shipped.

  • Matched staged V2 CPU: −2.89% one eligible sensor, −92.28% many-row selection, −48.75% many-row UTF-8/JSON/collect/select; zero eligible inconclusive. 12/12 pairs each. No HTTP, native LHM, whole-app CPU or resident-memory claim.
  • Original Windows driver: 20/21, exit 1. The original workspace attempt and first plain retry both encountered the same PresentMon synthetic-child PID readback assertion in different fixtures. The fixed uninstrumented parent/candidate comparison passed the original workspace command (753/756 distinct, 11 existing ignores each); only the exact candidate leg counts for the unit exception. Both original release-only runs passed 760 distinct tests each. Cause of the earlier failures is still unknown; final integrated gates must disclose both and any recurrence. No checks weakened; protections unchanged. No live app, hardware, deployment or merge; remote master unchanged.

Decode from the checked initialized aligned buffer inside each table read. Preserve established counts, the IPv4/IPv6 read order and error priority, and successful sample timestamps.

Independent GO on 3b0be258dd2b2254d9929d73a391fc72398cff3f. Old RED and rebuilt mutation 4 versus 2 allocations; exact restoration and control pass. Matched injected-fill CPU -37.76%, -32.27%, -48.04% for 0, 32, 4096 rows per family. All 21 original Windows gates green, 757 distinct workspace and two original release-only runs 761 each. No Unit 70 gate exception carried forward.
@InsecurePassword

Copy link
Copy Markdown
Owner Author

Unit 71 (WO-OPT22 / O11 TCP table copies) is on this PR. Independent GO on 3b0be258, no P1/P2. Decode the initialized aligned v4/v6 buffers in place and keep existing size, layout, read/error priority and established-count semantics.

  • Actual release baseline and recompiled old-copy mutation failed 4 vs 2 allocation requests only after exact-layout count, fill-order and malformed/read-error checks. Byte-exact restored control passed.
  • Same-work injected-fill CPU −37.76% / −32.27% / −48.04% for 0/32/4,096 rows per family (12/12 pairs each). Separate meter 4→2 allocations/sample; 4,096-row peak extra requested bytes 606,224→245,768. Neither timed native queries nor measured app resident memory.
  • All 21 original Windows gates passed: 757 distinct workspace tests and 761 each original Test.ps1 -ReleaseOnly, 0 failures, 11 existing ignores, protections unchanged. Unit 70's earlier two PresentMon synthetic-child readback failures remain unexplained; neither recurred and no exception carried forward. No live app/network/hardware, deployment or merge; remote master unchanged.

Remove the monotonic read that the drain would overwrite on every accepted row. Retain wall time, the batch observation clock, existing error ordering and partial progress.

Independent GO on 0151c1b8ae2d0955914b7f380629f4e466b3b9ca. Exact accepted-row oracle two old sampled clocks vs zero, rebuilt mutation and byte-exact restored control. Strict offline 7237-row digest parity, parser/batch CPU -2.89% and -3.43% (12 paired runs per size). All 21 original Windows legs passed, 758 distinct workspace and each original release-only 762. Historical Unit 70 fixture failures did not recur; no exception carried.
@InsecurePassword

Copy link
Copy Markdown
Owner Author

Unit 72 (WO-OPT20 / O6 discarded PresentMon clock) is on this PR. Independent GO on 0151c1b8, no P1/P2. The parser receives the monotonic batch timestamp the drain already used. The per-line wall-clock sample and all parsing, queue, error and freshness behavior stay unchanged.

  • Exact production drain baseline and recompiled old-path mutation hit the old clock-site oracle at 2 vs 0 only after both accepted rows and existing malformed-batch behavior matched. Byte-exact restore and actual rebuilt control passed.
  • Strict offline replay accepted exactly 7,237 rows per pass with digest 38873bb052b75d19. Matched parser/batch CPU −2.89% at 32 rows/batch and −3.43% at 256 (12/12 pairs each). This is not capture-process, whole-app CPU or panel timing.
  • All 21 original isolated Windows gates passed, 758 distinct workspace tests, 762 in each unchanged Test.ps1 -ReleaseOnly, 0 failures, 11 existing ignores, protections unchanged. Unit 70's two historical PresentMon test teardown failures remain unexplained and did not recur; no exception used. No live capture/app, hardware, deployment or merge; remote master unchanged.

Validate and update the cached activity through one mutable lookup. Own a copy only on invalid mapping removal, preserving fresh identity checks, PID reuse and candidate policy.

Independent GO on 5b679d97e87839fe92156f8c56d0f1812f6340c7. Actual old method and mutation fail only on 5 vs 3 warm allocations; exact restored control passes. Matched synthetic warm-hit CPU -36.35% and -41.73%, 12 pairs each. All 21 original Windows checks, 759 distinct workspace and each original release-only 763, no historical exception.
@InsecurePassword

Copy link
Copy Markdown
Owner Author

Unit 73 (WO-OPT25 / O6 cached PresentMon activity key) is on this PR. Independent GO on 5b679d97, no P1/P2. Healthy warm hits borrow their stored key, validate once and update in one map lookup. Invalid mapped keys still go through removal/revalidation; creation identity, PID reuse and candidate policies are unchanged.

  • Actual release baseline and rebuilt old-method mutation failed 5 vs 3 allocations only after exact returned identity and bucket, one validate, no resolver. The prior clock fix stayed in place through mutation; byte-exact restoration and fresh control passed.
  • Matched staged warm-hit CPU −36.35% usual path / −41.73% long path, 12/12 pairs in each shape. This cell uses injected validity; no native process calls, capture cost or app-memory claim.
  • All 21 original Windows gates passed: 759 distinct workspace and 763 in each original Test.ps1 -ReleaseOnly, 0 failures, 11 existing ignores, all protections unchanged. Earlier Unit 70 synthetic-child teardown failures did not recur and were not waived. No live app, capture, hardware, deployment or merge; remote master unchanged.

Keep ordered indices for known aliases while preserving duplicate resolution, short-row fallback, and present empty cells. Leave the complete quote validation and frame data path unchanged.

Independent GO on bcee5240b72d33731aef50c44c08ab7aa3d5dc8e. Exact old lookup and rebuilt mutation fail only on 29 vs 0 probes; restored control passes. Pinned 7237 accepted rows and digest unchanged, staged CPU -21.96% (12 pairs) and requests unchanged. All 21 original Windows checks, 760 distinct workspace and 764 each release-only. Non-blocking pinned-fixture doc placement to follow separately.
@InsecurePassword

Copy link
Copy Markdown
Owner Author

Unit 75 (WO-OPT26 / O6 compiled PresentMon CSV columns) is on this PR. Independent GO on bcee5240, no P1/P2. Data rows use the ordered indices resolved once at header admission. Short-row fallback, present empty fields, normalized last-wins duplicate headers and full quote validation are unchanged.

  • Actual old path and rebuilt mutation fail at 29 vs 0 data-row lookup probes after parity assertions; byte-exact restored control passes. The earlier timestamp and cached-key changes remain intact.
  • Strict offline replay retained 7,237 accepted rows and digest 38873bb052b75d19. Matched parser CPU and wall −21.96% each (12/12), allocation requests unchanged. No native capture, whole-app CPU or resident-memory claim.
  • All 21 original Windows gates passed: 760 distinct workspace and 764 in each original Test.ps1 -ReleaseOnly, 0 failures, 11 existing ignores, protections unchanged; no historical exception. One non-blocking fixture comment placement is a follow-up. No live app/capture, deployment or merge; remote master unchanged.

Use the admitted header width as a capped allocation hint, not an input field limit. Keep full line and quote validation, aliases, and all existing timestamps/error handling. Restore the pinned fixture comment alongside its constants.

Independent GO on c17d3335e96fd757d01494ee3fe694346abe0ea6. Actual old row-growth and rebuilt mutation fail only on 5 vs 2 allocator operations; restored exact control passes. Matched parser CPU -17.54% captured and -19.26% ten-field with equal results, fewer reallocations and unchanged measured peak requested bytes. All 21 original checks, 761 distinct workspace and 765 each unchanged release-only, no historical exception.
@InsecurePassword

Copy link
Copy Markdown
Owner Author

Unit 76 (WO-OPT27 / O6 PresentMon row capacity) is on this PR. Independent GO on c17d3335, no P1/P2. The admitted header gives the split vector a bounded initial capacity hint, not a column limit. Wider rows still parse, a malformed quote in a late field is still rejected, and the pinned fixture comment is back with its constants.

  • Actual release old row growth and rebuilt mutation failed at 5 vs 2 allocator operations after exact semantic assertions. Byte-exact restore and freshly built control passed. The reduction is in reallocations, not initial allocation-call count.
  • Matched CPU −17.54% on strict captured data and −19.26% on synthetic ten-field rows, 12/12 pairs each. Same 7,237 accepted rows, exact per-workload digests, same measured peak requested bytes. Very short or malformed rows can still request more transient space; the hint is capped at 32 slots. No live capture, whole-app CPU or resident-memory inference.
  • All 21 original Windows checks passed: 761 distinct workspace tests and 765 in each unchanged Test.ps1 -ReleaseOnly, 0 failures, 11 existing ignores, protections unchanged. Historical Unit 70 fixture failures did not recur or confer a waiver. No live app/hardware, deployment or merge; remote master unchanged.

Select s over z after a controlled z/s/2/3 comparison. It is the smallest tested profile that improves all eight staged workloads. Keep LTO, codegen units, panic, strip and dependency inputs unchanged.

Independent scoped GO on 088f11f8d96ebfcc7ea96590a79d883c92ad9467. Shipping EXE+DLL +205824 bytes (+17.22%); staged CPU -43.55% to -47.69% PresentMon, -35.95% to -41.90% renderer, -16.87% Discord. All 21 original Windows gates (761 distinct workspace and 765 each release-only), unchanged protections. Final committed-head reproducibility and integrated audit remain separate.
@InsecurePassword

Copy link
Copy Markdown
Owner Author

Unit 77 (WO-OPT17 / O12 release profile) is on this PR. Independent scoped GO on 088f11f8. The only tracked change is opt-level = "s" in the release profile; LTO, codegen units, panic mode, strip and dependency inputs remain fixed.

  • Four pinned Cargo-only builds (z, s, 2, 3) measured EXE+DLL sizes of 1,195,520 / 1,401,344 / 1,755,648 / 1,815,552 bytes. s is the smallest faster tested profile: +17.22% combined size vs z; default config identical.
  • Equal-work release libtest CPU vs z: −43.55% to −47.69% in the staged PresentMon cells, −35.95% to −41.90% for renderer, and −16.87% for the component. All staged output witnesses matched; 6–8 pairs per comparison after the predeclared guard. This is not shipping startup, whole-app CPU/RAM or native latency evidence.
  • All 21 original Windows checks passed: 761 distinct workspace tests and 765 in each unchanged Test.ps1 -ReleaseOnly, 0 failures, 11 existing ignores, protections unchanged. No historical waiver. Final committed-head paired reproducibility and integrated acceptance still pending. No live app/hardware, deployment or merge; remote master unchanged.

@InsecurePassword

Copy link
Copy Markdown
Owner Author

Independent OPT-13 offline gates: PASS on e8f7181. Overall merge readiness: HOLD. The PR remains open and unmerged; remote master was not modified.

  • All 21 original Windows checks passed: 761 distinct locked workspace tests and 765 in each of two original Test.ps1 -ReleaseOnly runs (actual inner exits 0), zero failures, 11 existing ignores. No exception was used. Two historical PresentMon synthetic-child PID-readback failures remain unexplained and did not recur in the final legs.
  • The first tracked ZIP was correctly refused before either build: Git's Windows CRLF conversion altered 37 of 93 tracked files, first reported on .gitattributes. A repro-only retry disabled conversion just for the export, verified all 93 raw tracked blobs, and ran the unchanged script. Two isolated release builds produced byte-identical EXE, Discord DLL, default config and compiled resources, with matching version metadata. Protected inputs/state unchanged; no app, installer, live provider or hardware path ran.
Output Bytes SHA-256
LCDSirPlus.exe 1,198,592 ac0b65ccf0412f01eae06a6bae05401a946e087de90d2948f4f0f961eb7fde22
lcdsirplus_discord.dll 202,752 57efb536bfecfca1f313ea7308b0f595651f140bff53c1949e775d62d9f874b9
lcdsirplus.txt 9,272 bbfed398187f8aafa3cb5024deec0b76c270cc7340c20ef26c4bf4f320abb68f

Remaining: The integrated review found repeat policy construction on otherwise disabled worker wakes (O1); this is an actionable offline gap, not a failing gate. O5's demonstrated protected-title ranking divergence still needs a policy ruling. O10 has an unconfirmed runtime edge from a pre-existing source-traced account-reset error-discard path and no approved roster admission policy. Whole-app sustained CPU on the 9950X3D, non-gaming resident private working set, real PresentMon freshness/cleanup, write-time ownership/recovery, and physical UI/panel behavior were not verified. Module and profile timings do not establish those targets, packaging smoke, or deployment readiness. No merge requested.

Borrow unchanged disabled policy fields between generation reads, retaining same-generation content edits and all active/in-flight checks. Do not change timed parks, reset publication, or shutdown.

Scoped independent GO on 01a197f9d6872a74ba48da03c8a1932e2b8dc057. Real worker old RED and rebuilt mutation [1,1,1] vs [0,0,0] full clones; exact restored control passes. Separate check meter 3968 to zero allocator operations per 64 checks. All 21 original Windows and three focused network legs pass; 762 distinct workspace and 766 per unchanged release-only. Prior integrated PASS remains scoped to parent.
@InsecurePassword

Copy link
Copy Markdown
Owner Author

Unit 78 (O1 disabled network request dormancy) is on this PR. The independent reviewer approved exact 01a197f9, with no P1/P2 findings. Unchanged disabled wakes compare borrowed policy fields; disabled edits and new generations still produce the original reset rows. Active and in-flight policy checks, the timed park, and shutdown are unchanged.

  • Exact worker baseline and rebuilt old path cloned the request on each of three controlled unchanged wakes; the exact byte-restored candidate cloned none. Separate repeated check meter: 3,968 → 0 allocator operations per 64 checks. Matched check-only CPU −99.26% (11/12 pairs; fast arm near the clock floor). This excludes actual parks, native probes, and app CPU.
  • All 21 original Windows legs and 3 focused network rounds passed: 762 distinct workspace and 766 in each unchanged Test.ps1 -ReleaseOnly, zero failures, 11 existing ignores, protections unchanged. No new live provider check, deployment or merge.

The previously independent integrated PASS applies to e8f7181 only. This newer PR head requires its own final gates, reproducibility and audit. Overall readiness remains HOLD; Hang/PresentMon offline follow-ups and owner/native validation are separate.

Reuse the settled disabled state only after processing a nonzero configuration generation. Preserve the original park, transition publication, uncached generation-zero behavior and active or mid-cycle work.

Scoped independent GO on 8236e1ec3a6dfa91f10fb91c79e6a181c391ff92; rebuilt old path RED and byte-restored control GREEN. All 21 original Windows and three focused Hang legs pass. The staged check meter reports 384 to zero allocations per 64 checks, not whole-app CPU.
@InsecurePassword

Copy link
Copy Markdown
Owner Author

Unit 79 (O1 disabled Hang policy) is on this PR. Independent offline audit approved exact freeze 8236e1ec with no P1/P2 findings. Only a settled disabled nonzero configuration generation takes the fast path; generation changes, uncached generation zero, publication, timed parks, shutdown and active/in-flight checks retain their original behavior.

  • Actual RED and rebuilt mutation converted policy on each of three settled wakes; the byte-restored control converted none. Separate staged meter: 384 → 0 allocator operations per 64 checks, and −94.98% CPU over 12/12 matched pairs. This does not measure detector work, wake frequency or whole-app CPU.
  • All 21 original Windows legs and three focused Hang rounds passed: 763 distinct workspace tests, 767 passes per original Test.ps1 -ReleaseOnly, zero failures, 11 existing ignores and unchanged protections.

PR readiness remains HOLD. The newer head needs its own integrated gates, reproducibility and audit after follow-up work. No live provider test, deployment or merge.

@InsecurePassword

Copy link
Copy Markdown
Owner Author

December 2: Windows x64 test candidate

Local candidate: 83a8a8cc527ab65d777e178ae0fd39c83b1e7c7f on the current PR head 4b413c2. The public README is preserved from master. Code delivery is on hold under the independent review gate.

  • G13 SDK calls keep a bounded deadline. After a timeout the app releases the stalled session without waiting on another call, then keeps retrying at the configured backoff, including when Logitech Gaming Software runs in the tray. Direct-HID ownership and SDK trust checks remain in place.
  • All-users upgrades reuse the registered Program Files installation. When the original startup owner cannot be verified as the invoking account, shared files can be upgraded without transferring the startup task. Retired settings remain readable without rewriting the user's configuration.
  • Headset polling defaults to five minutes, with a 20-minute stale timeout. Explicit settings still take precedence.
  • The candidate also includes the recent runtime, provider, and packaging fixes, including the lower-cost connected SDK process census, idle LCD refresh, and on-demand NVIDIA board power.

The local unsigned 0.3.0 test installer (SHA-256 6def07645dd5f82b662cb32289a329c09aab5c9d8a987af2dcc57d81ee799be8) passed the locked offline workspace build, two byte-identical Inno Setup compiles, InstallerStatic, and LifecycleCleanupStatic. Setup has not been run on these bytes.

Focused release checks passed: 123 backend and 21 parser tests, with one existing ignore. Rebuilding with the old visible-window restriction restored reproduced the reconnect failure; the byte-exact restored control passed. The packaged executable accepted the existing test-machine profile without changing its bytes.

Runtime review blockers:

  1. Hung-window action authorization needs to consult the current physical press and pending-release state at the point of authorization.
  2. Direct HID needs an input boundary after displaying a new hung-window target, so buffered reports cannot authorize an action on the newly displayed target.
  3. Shutdown during a blocked SDK close must be rechecked before discovery/open.
  4. auto needs to return to normal HID ownership arbitration after LCore exits, even when the SDK session is quarantined.

The remaining freshness-only publication and parked-GPU queue cases are lower-priority audit findings, not closed by this candidate.

Installer and compatibility review blockers:

  1. Installations previously registered in a protected custom Program Files folder need a supported in-place upgrade.
  2. A separate all-users install must not block repair of an existing current-user install.
  3. Conflicting startup-owner records must not allow uninstall to leave the actual owner's task behind.
  4. An older headset_poll_ms auto profile with an explicit stale timeout shorter than the new default poll must remain readable.
  5. Failed qualification cleanup must not leave an Installed Apps registration pointing at a deleted uninstaller.

Use this test setup on disposable Windows. The installer findings are from source review and were not exercised against the user's installation.

Full qualification is separate: exact-head repeated software gates, reproducible release artifacts, disposable Windows installation lifecycle, physical G13 recovery and controls, and current-build performance evidence. The earlier CPU and private working-set measurements apply to the builds recorded in their receipts. This is not a 1.0 release or a request to merge.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant