Skip to content

Show per-task token usage and reporting coverage - #16

Merged
DrDrewCain merged 1 commit into
mainfrom
feature/workflow-token-usage
Sep 13, 2026
Merged

DrDrewCain merged 1 commit into
mainfrom
feature/workflow-token-usage

Conversation

@DrDrewCain

Copy link
Copy Markdown
Contributor

Completed workflow results now show each model task's provider-reported prompt, completion and total token counts, together with reporting-call coverage. Partial categories display Unknown; historical receipts say that usage was not recorded. Saved results retain their original counts, human replies show no model usage, and final handoffs are displayed once.

Negotiate the native agents.usage capability and request include_usage=true only when supported. Strict detached parsing verifies scalar counts, per-call coverage and matching handoff-final reports. Older hosts keep the existing result view; stale request cancellation and source-verifying result-read ordering remain intact. Native dependency: ProjectScone feature/workflow-token-usage at374de2d.

Validation: 471 unit tests passed; strict TypeScript, production build and packaged-asset checks passed. Two packaged React → actual local Python API → encrypted journal/restart journeys passed in installed Firefox, desktop and390px mobile. They verify selected models, exact reported138 total, partial Unknown cells, two model tables/no human table, query negotiation and unchanged model-call count after result reads. Screenshots visually inspected; no horizontal overflow or browser errors. Independent review passed729 parser combinations, detached/frozen report checks, handoff agreement, legacy/default handling and stale-request review.

Counts are provider assertions for completed tasks, not billing totals, estimates or answer-quality scores. Scripted fixtures establish orchestration and rendering only. No shared live service changed, external model invoked or reference code copied.

@DrDrewCain
DrDrewCain merged commit 9fe15cb into main Sep 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant