Repository navigation
Conversation
…acy socket logger; timing macros log again Nothing in the repository loads continuum-core's C ABI: its 11 exported symbols (continuum_free, continuum_health_check, continuum_inbox_create, ...) appear nowhere outside core/continuum-core, and nothing names libcontinuum_core. Yet every build also linked the whole 688k-line crate as a cdylib for it. Deleted: src/ffi (423 lines), the cdylib crate type, the legacy LOGGER/init_logger/logger() and LoggerClient socket client (168 lines; init_logger's only caller was ffi), its integration test, and the dead 'ffi::' log category. The log_* macros keep only the sink path that actually ran on the server. Defect fixed on the way: TimingGuard (time_async!/time_section!) logged only through the legacy logger, which the native server never initializes, so every timing was silently dropped. It now writes to the same sink as every other log line. Measured on the M5: cargo check -p continuum-core --features metal,accelerate --tests 0 errors (244 s, full priority); source-hygiene 37/37 with unjustified unwraps 2,137 -> 2,135 and boundary-serialization unjustified 237 -> 234 locked in. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… to 75) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Codex source review at 252384a: PASS for removing the unused native C ABI, conditional on exact-head CI. Verified claim: enumerated all 11 deleted extern-C functions and searched the entire reviewed Git tree. Their remaining references are in legacy/quarantine/continuum-core-bindings/RustCore.ts; no active consumer found. Searches for libcontinuum_core and dynamic library filenames outside legacy/docs, and for continuum-core-bindings imports outside legacy/docs, returned no matches. Please qualify the PR body's literal "nowhere outside the crate" claim: quarantined callers do exist. The logging macro change preserves the native-server branch. TimingGuard now reaches the existing write_log_direct -> queue_log -> nonblocking enqueue owner, with existing threshold/level behavior. This establishes routing, not guaranteed delivery: the sink can be unavailable or its bounded queue full. The previous structured timing args are absent in the new text-only path; no live native-server args consumer is regressed because that path never initialized LOGGER. Keep that limitation explicit if these logs become measurement inputs. No local build or deployed timing measurement performed for this review; release-link savings remain pending the named deployment measurement. |
…ough ClogLayer Brings in #5202 (delete the unused FFI, its cdylib and the legacy socket logger) so the two land in either order. Conflicts in the log_* macros resolve to the tracing events. #5202's TimingGuard called write_log_direct, which this branch deletes; it now emits the same clog event as log_warn!/log_info!/log_debug! (category = its category, component "performance"), so timings reach their files through the one layer. logging::LogLevel and logging::WriteLogPayload were the deleted client's wire types and have no user left; deleted with the crate-root LogLevel re-export. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…by one layer card b22ed589. The clog_*/log_* macros wrote through a private file pipeline beside tracing: each expanded to `modules::logger::log_sink_ready()` plus `logging::write_log_direct`, so the kernel's logging module named the service layer above it at ~630 call sites. Now every macro is a plain `tracing` event on target `continuum::clog` (category and component as fields when the macro takes them; otherwise the layer derives both from the event's module path, as before). ONE layer, `logging::clog_layer::ClogLayer`, installed by `install_probe_tracing` in both the file and stderr variants, routes those events through a `ClogSink`; the core's sink (`modules::logger_clog_sink::LoggerQueueSink`) is the LoggerModule's existing `queue_log` writer, so files, levels, layout and line format are unchanged, and lines fired before the LoggerModule exists still drop, now before the message is formatted. The fmt layer's filter (`fmt_layer_filter`) removes the clog target, so no line is written twice. Deleted: `write_log_direct`, the macros' string level mapping, and `clog_to!` (zero call sites). The macros keep their names and signatures; no call site changes. LOGGER and the FFI client are untouched (PR #5202 deletes them). Hygiene: logging no longer imports `modules` (upward imports 254 -> 253) and modules/logger.rs shrank (lines past 1000: 157618 -> 157615); both baselines lowered. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…by one layer (#5206) * One logging system: clog_*/log_* are tracing events, routed to files by one layer card b22ed589. The clog_*/log_* macros wrote through a private file pipeline beside tracing: each expanded to `modules::logger::log_sink_ready()` plus `logging::write_log_direct`, so the kernel's logging module named the service layer above it at ~630 call sites. Now every macro is a plain `tracing` event on target `continuum::clog` (category and component as fields when the macro takes them; otherwise the layer derives both from the event's module path, as before). ONE layer, `logging::clog_layer::ClogLayer`, installed by `install_probe_tracing` in both the file and stderr variants, routes those events through a `ClogSink`; the core's sink (`modules::logger_clog_sink::LoggerQueueSink`) is the LoggerModule's existing `queue_log` writer, so files, levels, layout and line format are unchanged, and lines fired before the LoggerModule exists still drop, now before the message is formatted. The fmt layer's filter (`fmt_layer_filter`) removes the clog target, so no line is written twice. Deleted: `write_log_direct`, the macros' string level mapping, and `clog_to!` (zero call sites). The macros keep their names and signatures; no call site changes. LOGGER and the FFI client are untouched (PR #5202 deletes them). Hygiene: logging no longer imports `modules` (upward imports 254 -> 253) and modules/logger.rs shrank (lines past 1000: 157618 -> 157615); both baselines lowered. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * chore(core): delete the unused Node/Swift FFI, its cdylib and the legacy socket logger; timing macros log again Nothing in the repository loads continuum-core's C ABI: its 11 exported symbols (continuum_free, continuum_health_check, continuum_inbox_create, ...) appear nowhere outside core/continuum-core, and nothing names libcontinuum_core. Yet every build also linked the whole 688k-line crate as a cdylib for it. Deleted: src/ffi (423 lines), the cdylib crate type, the legacy LOGGER/init_logger/logger() and LoggerClient socket client (168 lines; init_logger's only caller was ffi), its integration test, and the dead 'ffi::' log category. The log_* macros keep only the sink path that actually ran on the server. Defect fixed on the way: TimingGuard (time_async!/time_section!) logged only through the legacy logger, which the native server never initializes, so every timing was silently dropped. It now writes to the same sink as every other log line. Measured on the M5: cargo check -p continuum-core --features metal,accelerate --tests 0 errors (244 s, full priority); source-hygiene 37/37 with unjustified unwraps 2,137 -> 2,135 and boundary-serialization unjustified 237 -> 234 locked in. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(core): drop timing.rs's now-unused LogLevel import (warnings back to 75) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(identity): drop the two LOOSE_IDS entries for logging/client.rs, deleted with the legacy logger Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Rebase fixup: timing.rs takes the branch's clog-event form (the merge resolution), not the pre-merge FFI-commit form Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Lower ratchet baselines to the counts the rebased tree measures Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Drop the LogLevel re-export the logging consolidation removed (unresolved import) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Lower the rust-warnings baseline to 65 (CI measured the fall) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Drop the LooseId entry for resolution_compute.rs, deleted on canary Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Nothing loads continuum-core's C ABI (its 11 exported symbols appear nowhere outside the crate; nothing names libcontinuum_core), yet every build linked the whole crate as a cdylib for it.
Deleted: src/ffi (423 lines), the cdylib crate type, the legacy LOGGER/init_logger/logger() and LoggerClient (168 lines; only ffi initialized it), tests/logger_integration.rs (tested only that logger), the dead 'ffi::' log category. log_* macros keep only the sink path that ran on the native server.
Defect fixed: TimingGuard (time_async!/time_section!) logged only through the never-initialized legacy logger, so every timing was silently dropped; it now writes to the shared sink.
Measured (M5, 2026-10-19)
cargo check -p continuum-core --features metal,accelerate --tests: 0 errors, 244 s.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo