Add dispatch duration report derived from dispatch timestamps #549
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#549
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
no pipeline-level dispatch duration / route latency report
Problem
The user asked for this while investigating #528 (settlement timing).
dispatchesalready hascreated_at,updated_at,completed_at,routed_at,stalled_at(Db.timestamp_columns, plugins/os-sdlc/lib/os_sdlc/model/db.rb). There is nogate_runstable; gate/verdict data lives incorrection_rounds,violations,step_results, each with onlycreated_at/updated_at. Per-dispatch duration and route latency are derivable without new columns.Cases
--format md|json|csv, when passed, then output renders in that format, matching the existingviolationssubcommand's formats.Approach
route_ms = routed_at - completed_at(routing happens after the dispatch completes in this pipeline).duration_ms = completed_at - created_at. Copy theviolationscommand pattern (plugins/os-sdlc/lib/os_sdlc/pipeline/cli.rb, plugins/os-sdlc/lib/os_sdlc/pipeline/dispatch_commands.rb) and its ViolationsReport rendering. DispatchSummary (plugins/os-sdlc/lib/os_sdlc/model/implementation/dispatch_summary.rb) already computes elapsed_s per dispatch but has no route latency or totals.Required work:
durations IMPLEMENTATION_ID --format md|json|csvThor subcommand besideviolationsin dispatch_commands.rbAcceptance criteria
durations IMPLEMENTATION_IDruns, then it prints per-dispatch duration_ms and route_ms plus totals.--format json, when passed, then the output parses as valid JSON with the same fields as the md/csv forms.Owner sketch
Non-goals
No
gate_runstable or new columns; this ticket does not touch #528's throwaway timing probe.Origin
Resolution
Done: durations IMPLEMENTATION_ID --format md|json|csv Thor subcommand reports id, agent_type, duration_ms, route_ms per dispatch plus totals from existing timestamps; no schema change
Evidence: commit
326aa792; os-sdlc suite 1438 runs 0 failuresFollow-ups: none