Record main-loop token usage per implementation #598
Labels
No labels
P0
P1
P2
P3
bug
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
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#598
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?
Context
Split from #590 on 2026-09-15. #590 requested an orchestrator-role dispatch row to record main-loop token usage alongside subagent dispatches. #590 now delivers subagent sweep only. The main loop is not a dispatch.
Observed
implementation-reportsums dispatch rows only. Main-loop usage for an implementation is never recorded anywhere in pipeline.db.Reproduce
n/a: feature ticket. The absence is visible in any
implementation-reportoutput, which lists subagent roles only.Expected
A design decision, then implementation, on two points. Source: the parent session jsonl read at SessionEnd, or the implementation-report reading the parent session jsonl by implementations.session_id. Landing: a synthetic orchestrator dispatch row, or new columns on implementations. Related: ADR-0175 (lazy usage read after agent return).
Origin
DispatchCommands.implementation_report(plugins/os-sdlc/lib/os_sdlc/runner/dispatch_commands.rb)