Repository navigation
Conversation
… has one import path
This branch has not been deployed
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.
Summary
Phase spans had two recording APIs. The buffered
PhaseTimerin homeboy-engine-primitives built a report, and a separate core thread-local API had its ownPhaseGuardand timing functions that wrote to the ObservationStore. Now the primitivesPhaseTimer/PhaseGuardis the only way to record a phase. When a run context is active, it writes each finished span through the core ObservationStore sink, so phase spans for Cook and bench runs still end up in observation output.What changed
homeboy_engine_primitives::phase_timing::PhaseTimerand itsPhaseGuard. Deploy, lab offload and runner evidence already used it, and it is a dependency-light shared primitive. It now covers both buffered reports and run-bound recording.observation::phase_timing::{PhaseGuard, guard, finish, time, time_with_outcome},ObservationStore::{RunPhaseGuard, run_phase_guard, time_run_phase, time_run_phase_with_outcome, finish_run_phase_with_usage}, and thehomeboy_core::phase_timingre-export.observation::phase_context(for_run,enter,current,inherit). It installs the ObservationStore write path, andinheritstill passes the run to worker threads.failedinstead ofok. Each run-bound span gets its own write identity, so repeated samples of the same phase are kept rather than merged.Verification
git diff --check): passed on9473e17. Basemain@2f43cf2unchanged. 21635 ms; retained gate metadata.Cook run
23a1da5c45a1093cc45cc0c39ece1ca8eeb934d9Evidence
Evidence is missing: no measurements, before/after observations or repro results were supplied.
AI disclosure
Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served gpt-6.1-sol, claude-opus-5-5. Cook time: 25m19s.
The AI migrated every phase-timing caller to the primitives timer, removed the duplicate guard and write paths, and ran focused compile checks and tests, under the direction of the Cook requester. Gates were run by Homeboy. A human reviews before merge.
Closes #18822