Repository navigation
runs stage timestamps: add workspace_ready_at, agent_ready_at, agent_en… - #1218
Merged
Merged
Conversation
…d_at, reaped_at (warren-7116) Add four nullable timestamp columns to runs (sqlite + postgres drizzle schemas + generated migration pair) decomposing the run wall clock into its observed edges: - workspace_ready_at: stamped via a runtime -> domain signal from the local drive loop right after prepareSpawn (DriveDeps.onWorkspaceReady, threaded through the runtime registry + boot wiring) and from the k8s pod-watcher when the workspace-init container terminates (off the kubelet finishedAt stamp), at the same site that feeds the warren_workspace_init_duration_seconds histogram. - agent_ready_at: stamped by RunsRepo.claimById at the queued -> running atomic claim (the event bridge's first-event instant = startedAt). - agent_ended_at: stamped at reapRun entry, i.e. at runtime-terminal detection before any reap work; first-write-wins and only when the run claimed (queued cancels keep it null). - reaped_at: stamped in transitionToTerminal alongside finalize. ended_at keeps its existing post-push/PR/salvage semantics. All four classified into PUBLIC_RUN_FIELDS (partition test pins the split), added to the SDK + UI RunRow types, and covered by a lifecycle test asserting the writers stamp in order plus first-write-wins idempotence, a pod-watcher signal test, and a drive-loop signal test.
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
runs stage timestamps: workspace_ready_at, agent_ready_at, agent_ended_at, reaped_at (warren-7116)
Run
run_6mj221g45kndSeeds
Commits (3)
Files changed
Prompt
Show prompt
🤖 Opened by warren run
run_6mj221g45knd