Repository navigation
probe(boot): boot.stretch step marks across the persona-host setup (the 14 s pinned on ai_provider) - #3742
Merged
Conversation
…the 14 s boot.construct pinned on ai_provider boot.construct attributes construction time per REGISTER; between rag_inspect's registration and ai_provider's nothing registers, so the persona-host setup block (recipe overlay + resident roles, PersonaSpawnSupervisor, the spawned resume task) was charged to ai_provider: 14,068 ms on the M5, 40 s+ on BigMama's host. Three marks — resident_roles_and_overlay, before_supervisor, end_of_persona_host_block — each with ms since the previous mark, name the step that owns it. Receipt: the next boot's boot.stretch rows. No behaviour change. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Sep 5, 2026
… observed nothing Caught by deploying it. Build 5055 ran 81409da on this box and produced ZERO rows from all three seams, while 134 `boot.construct` events landed in the same log from the same boot. `time_sync!` opens a `tracing::info_span!`. Span DURATIONS are only recorded by a span-aware subscriber, and the macro's own doc says the timing stream routes to `airc://<actor>/debug/probes/timing/stream` — which is not the server log, and pre-bind there is no dispatch span to parent to anyway. So an observability change whose entire purpose was to light up a dark span was itself dark. Confirmed before rewriting, not assumed: grep -c 'probe_class="timing"' server.log -> 0 grep -c 'boot.construct' server.log -> 134 Rewritten as explicit `Instant` + `probe!` events, which is the shape #3742 used and the reason M5's marks work. Reusing #3742's exact class and fields (`boot.stretch` / `stretch` / `step` / `ms`) rather than inventing a parallel `boot.*` class per seam, so one query covers both stretches: boot.stretch stretch="serving_span" step="model_catalog" boot.stretch stretch="serving_span" step="gpu_monitor_detect" boot.stretch stretch="serving_span" step="serving_daemon_new" Also recorded in the gpu seam's comment: boot cost on this host swings from 18 s to over 300 s between runs (the 300 s bind watchdog has fired twice, at 05:28:28 and 08:02:54, each time reporting "a pre-bind panic or a hung module init" when the boot was merely slow). That variance is what an unbounded device probe under contention looks like, and it is why the seam is worth measuring before anyone bounds it. cargo check -p continuum-core --lib: clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
added a commit
that referenced
this pull request
Sep 5, 2026
…registrations names its own cost (#3743) * probe(boot): the 209-second dark span between the system and serving registrations names its own cost `boot.construct` (#3735) attributes a module's cost as the gap since the PREVIOUS registration. That is exact only when nothing happens between two registrations. In ipc/mod.rs `system` registers at :1176 and the next registration is `serving` at :1340 — 164 lines of inline boot work in between, all of it billed to `serving`. Measured on BigMama (windows-msvc, 5090), canary 485cde6: serving 209,170 ms <- the span, not the constructor genome 11,619 ms construct_modules 232,429 ms vs 14,270 ms on the M5 (16.3x) sum of 59 rows 222,813 ms -> 9,616 ms residue and the span emits NOTHING: between `system` at 07:28:13.490 and `serving` at 07:31:42.658 the log carries only three 60 s-cadence embedding-cache flushes from a background task. 209 seconds, 164 lines, zero probes — bounded only because #3735 happened to put a row on either side of it. Three `time_sync!` seams, no behaviour change: boot.model_catalog ModelCatalog::from_registry boot.gpu_monitor_detect gpu::monitor::detect() boot.serving_daemon_new ServingDaemonModule::new() `boot.gpu_monitor_detect` is the load-bearing one. #3733 bounded nvidia-smi in gpu/memory_manager.rs::detect_cuda ONLY; gpu/backends/nvidia.rs still spawns it four times (:215, :228, :243, :257) with `.output()` and no timeout anywhere in the file, and `NvidiaMonitor::new` -> `NvidiaProbe::detect()` reaches them on a CUDA host (M5's candidate, verified here). If that is the 209 s, this says so in one boot. Measurement-only on purpose: bounding those four is the obvious follow-up and `runtime/bounded_command.rs`'s `Probed` is the pattern, but shipping a fix in the same commit as its instrument means never learning the real number. Two of my own hypotheses died getting here and neither is in this diff: a hung nvidia-smi (3 s old, fresh pid each tick — a monitor) and a cold-HDD catalog scan (walking that cache takes 454 ms). cargo check -p continuum-core --lib: clean. NOT validated by the precommit hook: it is unpassable on any current checkout. `git-precommit.sh:5` does `cd "$(dirname $0)/.."`, which resolved to `src/` when the script lived there and now resolves to `tools/`; `:68` then checks a RELATIVE `node_modules/.bin/tsx` against a directory with no package.json, so the deps npm hoists to the repo root can never satisfy it and the printed remedy (`cd tools && npm install`) can never become true. `:144 cd src` waits behind it. Diagnosed, not bypassed with --no-verify; carded with all three sites. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * fix(probe): the boot seams emit EVENTS — the first cut used spans and observed nothing Caught by deploying it. Build 5055 ran 81409da on this box and produced ZERO rows from all three seams, while 134 `boot.construct` events landed in the same log from the same boot. `time_sync!` opens a `tracing::info_span!`. Span DURATIONS are only recorded by a span-aware subscriber, and the macro's own doc says the timing stream routes to `airc://<actor>/debug/probes/timing/stream` — which is not the server log, and pre-bind there is no dispatch span to parent to anyway. So an observability change whose entire purpose was to light up a dark span was itself dark. Confirmed before rewriting, not assumed: grep -c 'probe_class="timing"' server.log -> 0 grep -c 'boot.construct' server.log -> 134 Rewritten as explicit `Instant` + `probe!` events, which is the shape #3742 used and the reason M5's marks work. Reusing #3742's exact class and fields (`boot.stretch` / `stretch` / `step` / `ms`) rather than inventing a parallel `boot.*` class per seam, so one query covers both stretches: boot.stretch stretch="serving_span" step="model_catalog" boot.stretch stretch="serving_span" step="gpu_monitor_detect" boot.stretch stretch="serving_span" step="serving_daemon_new" Also recorded in the gpu seam's comment: boot cost on this host swings from 18 s to over 300 s between runs (the 300 s bind watchdog has fired twice, at 05:28:28 and 08:02:54, each time reporting "a pre-bind panic or a hung module init" when the boot was merely slow). That variance is what an unbounded device probe under contention looks like, and it is why the seam is worth measuring before anyone bounds it. cargo check -p continuum-core --lib: clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Sep 5, 2026
…— a hang names itself instead of reading as not-reached (#3746) BigMama's review of #3742 (card 81597f07): marks emitted after a step cannot tell hung-in-step from not-reached; both are silence. Each mark now carries next = the step beginning now, and an enter mark opens the stretch. Zero extra rows beyond the enter. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5.1 <[email protected]>
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.
boot.construct charges the whole persona-host setup block to
ai_provider(nothing registers in between): 14,068 ms on the M5, 40 s+ on BigMama's host. Threeboot.stretchmarks (resident_roles_and_overlay, before_supervisor, end_of_persona_host_block) with ms since the previous mark.cargo checkgreen; no behaviour change; receipt = the next boot's rows.Review requested; no auto-merge.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo