Expert: Logical task tracker with per-task cost attribution #14
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/llm-log#14
Loading…
Add table
Add a link
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?
Parent: #7
Goal
Build a task-tracking expert that groups captured LLM activity into logical tasks/subtasks and attributes provider/model/token/tool costs to those tasks for later analysis.
The important object is the task, not the HTTP request. One user goal may span many model calls, retries, tool calls, subagents, conversations, or providers.
Required entities
Task inference
Prolog should derive task continuity/splitting from explicit task IDs when available and symbolic evidence when they are not. Signals may include:
Do not silently merge ambiguous work. Support
unknown_task/ candidate membership until stronger evidence exists.Cost model
Track raw usage separately from derived monetary cost:
Pricing is time/version dependent. Never overwrite old cost derivations when pricing tables change; store the pricing revision used.
Tek9 graph examples
Use secondary indexes for task ID, provider, model, timestamp, project, status and classification labels so aggregate analysis does not require full scans.
Queries this expert must eventually answer
RED-first acceptance
Before implementation, tests must fail proving the baseline cannot:
Dataset/analysis value
Task IDs become the join key between request classification, rewrites, provider/model usage, outcomes and later training/evaluation datasets. This expert should make it possible to measure not merely cost-per-call but cost-per-successful-task.
Closed as duplicate. Canonical task/cost expert is #13 under #8 and depends on #10.