rdmsm4x-changelog-20260902-1753-ecsnettop-hardening
rdmsm4x-changelog-20260902-1753-ecsnettop-hardening
Hardened the isolated ECSNetTop implementation so RTTy cannot consume socket-buffer occupancy as traffic throughput.
Scope
- Host:
rdmsm4x - Ticket:
FEAT-20260902-17(claim unchanged:codex@rdmsm4x/rtty-ecsnettop) - Isolated worktree only:
/Users/richh/dev/_handoff/rtty-appstore-finalization-20260902/nettop/universe/lib/ecs0lib - Branch/commit:
codex/ecs0lib-nettop-hardening-20260902/7b7954ac3186f40e645b940fffee8adc3e7e30e8 - Canonical ecs0lib and RTTy worktrees were not edited.
Changes
- Replaced misleading traffic-byte/packet/rate fields with accurately named instantaneous socket queue occupancy and mbuf-memory observations.
- Added typed complete, partial, and unavailable inventory evidence, per-process inspection issues, and explicit truncation reporting.
- Compile-gated macOS
libprocimplementation and provided non-macOS unsupported bridge behavior. - Added/updated ECSNetTop and deep verification tests.
Verification
- Focused ECSNetTop XCTest: 5/5 passed.
- Full XCTest: 187/187 passed.
- Full ThreadSanitizer XCTest: 187/187 passed without a race report.
ECS0NetworkingXcode target builds passed for macOS, iOS, tvOS, and visionOS.git diff --checkpassed before commit; isolated worktree clean after commit.
Durable artifacts and undo
- Detailed handoff:
/Users/richh/dev/_handoff/rtty-appstore-finalization-20260902/ECSNETTOP_HARDENING_REPORT.md - Undo: revert commit
7b7954ac3186f40e645b940fffee8adc3e7e30e8in a reviewed integration worktree. Do not force-push or alter the ticket claim.
Remaining owner action
- Review/integrate through ecs0lib's normal path. RTTy's separate rate-based Direct coordinator must be migrated to queue-inventory evidence or removed before this commit is adopted; Standard/App Store scope remains unchanged.