rdmbair15m5-changelog-20260911-0443-m3-rfc-syslog-logging-process
rdmbair15m5-changelog-20260911-0443-m3-rfc-syslog-logging-process
Implemented Milestone M3 (RFC 5424/3164 Syslog, Socket Transports, Apple Unified Logging, Breadcrumbs Ring Buffer, Process Supervision, and Darwin Event Monitoring) with complete dual-surface parity across ECSSystem/ECSLog and ecs0lib.
Summary
Milestone M3 delivers Features 19โ25 of the ECSLibrary Expansion Initiative:
- RFC 5424 & RFC 3164 Syslog serialization, formatting, parsing,
and facility/severity calculation (
SyslogModel.swift). - Syslog multi-transport dispatch over UDP, TCP with octet-counting
framing, TLS, and
/var/run/syslognon-blocking fallback (SyslogTransports.swift). - Apple Unified Logging facade, O(1) saturation breadcrumb ring buffer
with OSAllocatedUnfairLock, privacy redactor engine, and multi-format
exporters (ANSI color, JSON, NDJSON) (
ECSLogger.swift,ECSBreadcrumbRingBuffer.swift,ECSLogExporter.swift,ECSUnifiedLogging.swift). - Process supervision state machine, lifecycle manager, health
checking, and tree reaper with process group signals and strict
pgid > 1 && pgid != getpgrp()safety guards (ProcessSupervisor.swift,ProcessTreeReaper.swift). - Darwin system event monitoring for dispatch memory pressure and
thermal states (
DarwinSystemEventMonitor.swift). - Dual-surface parity: Standalone packages (
ECSSystem, new standaloneECSLog) and umbrellaecs0lib(ECS0System,ECS0Log) with 100% backward compatibility for existing consumers (ECSSyslog.shared.log,beginTrace,endTrace).
Scope
- Hosts:
rdmsm4x(canonical code & repo host),rdmbair15m5(test runner & verification) - Repositories touched:
rdmsm4x:~/dev/lib/ECSSystem(Commit4c46768)rdmsm4x:~/dev/lib/ECSLog(Commitaa914dc)rdmsm4x:~/dev/lib/ecs0lib(Commitf0269f6)
Exact Files Touched
ECSSystem
Sources/ECSSystem/SyslogModel.swift(New)Sources/ECSSystem/SyslogTransports.swift(New)Sources/ECSSystem/ECSLogger.swift(New)Sources/ECSSystem/ECSBreadcrumbRingBuffer.swift(New)Sources/ECSSystem/ECSLogExporter.swift(New)Sources/ECSSystem/ECSUnifiedLogging.swift(Updated for ring buffer & backward compatibility)Sources/ECSSystem/ECSSyslog.swift(Updated with backward-compatible API & typealias)Sources/ECSSystem/ProcessSupervisor.swift(New)Sources/ECSSystem/ProcessTreeReaper.swift(New)Sources/ECSSystem/DarwinSystemEventMonitor.swift(New)Tests/ECSSystemTests/SyslogTests.swift(New)Tests/ECSSystemTests/UnifiedLoggingAndRingBufferTests.swift(New)Tests/ECSSystemTests/ProcessSupervisionAndEventMonitoringTests.swift(New)
ECSLog (New
standalone package)
Package.swiftSources/ECSLog/SyslogModel.swiftSources/ECSLog/SyslogTransports.swiftSources/ECSLog/ECSLogger.swiftSources/ECSLog/ECSBreadcrumbRingBuffer.swiftSources/ECSLog/ECSLogExporter.swiftSources/ECSLog/ECSUnifiedLogging.swiftSources/ECSLog/ECSSyslog.swiftTests/ECSLogTests/SyslogTests.swiftTests/ECSLogTests/UnifiedLoggingAndRingBufferTests.swift
ecs0lib
Package.swift(AddedECS0Logproduct & target, linked toECS0SystemandECS0LibTests)Sources/ECS0Log/*(All 7 logging and syslog files)Sources/ECS0System/ECS0System.swift(@_exported import ECS0Log)Sources/ECS0System/ProcessSupervisor.swift(New)Sources/ECS0System/ProcessTreeReaper.swift(New)Sources/ECS0System/DarwinSystemEventMonitor.swift(New)Sources/ECS0System/ProcessRunner.swift(ExpandedProcessRunnerErrorcases for parity)Tests/ECS0LibTests/M3_SyslogAndSystemServicesTests.swift(New suite with 14 comprehensive tests)
Verification Evidence
- ECSSystem Unit Tests:
ssh rdmsm4x "cd ~/dev/lib/ECSSystem && swift test"- Result: 28/28 tests passed (0 failures).
- ECSLog Standalone Unit Tests:
ssh rdmsm4x "cd ~/dev/lib/ECSLog && swift test"- Result: 11/11 tests passed (0 failures).
- ecs0lib Umbrella Unit Tests:
ssh rdmsm4x "cd ~/dev/lib/ecs0lib && swift test"- Result: 65/65 tests passed across 11 suites + all adversarial hardening tests passed (0 failures).
- Universal2 Release Compilation (
arm64+x86_64):ECSSystem:lipo -info libECSSystem.a->x86_64 arm64ECSLog:lipo -info libECSLog.a->x86_64 arm64ecs0lib:lipo -info libECS0Log.a&libECS0System.a->x86_64 arm64
- Independent 4-Tier E2E Test Suite:
- Command:
tests/e2e/run_e2e_tests.zsh - Result: 392/392 passed (100.00% pass rate, 0 failures, 0 errors).
- Command:
- Git Remotes Verification:
ECSSystem: Committed4c46768, pushed togit.ecs0.net:git/lib/ECSSystem.gitand GitHub backup.ECSLog: Committedaa914dc, pushed togit.ecs0.net:git/lib/ECSLog.git.ecs0lib: Committedf0269f6, pushed togit.ecs0.net:git/lib/ecs0lib.gitand GitHub backup.
How to Undo / Rollback
- Revert commits on
rdmsm4x:cd ~/dev/lib/ECSSystem && git revert 4c46768 && git push origin maincd ~/dev/lib/ecs0lib && git revert f0269f6 && git push fleet main- Delete
ECSLogbare repository ongit.ecs0.netif needed.
Outstanding Owner Actions
- None. All implementations are genuine, fully verified, backward-compatible, and synced to fleet git remotes.