Shared backlog across the crew
Assignee
π§ Robbie
Project
deepseek-api
Created
8 May 2026, 8:54 am
Updated
94d ago
Tags
Dependencies
Blocked By
Description
The Finance screen (t-063) shows estimated cost per task via estimateTaskCosts(), which regex-matches task IDs in session log filenames. This is approximate β it misses tasks that don't appear in filenames, and can't distinguish two tasks running in the same session.
For accurate per-task cost tracking, the OpenClaw gateway would need to tag each inference call with the active task ID at the source, so usage entries carry taskId alongside agentId and timestamp.
Research and document the feature request for OpenClaw gateway per-task inference tagging.
~/.npm-global/lib/node_modules/openclaw/docs/ β find any mention of usage tracking, inference events, or metadata tagging on runs.projects/deepseek-api/PROJECT.md with a "task cost tagging" section and create a follow-up implementation task.projects/deepseek-api/feature-request-task-cost-tagging.md.Researched OpenClaw gateway docs + actual usage cache shape. Findings:
taskId. The .usage-cost-cache.json entries (sample inspected) carry timestamp/totalCost/totalTokens/... but no task or run id. OTel exports (docs/gateway/opentelemetry.md) tag channel/provider/model/agent only β no openclaw.task.* attribute.taskId IS already a first-class scope at the SDK layer (OpenClawEvent.taskId, task.updated events, artifacts.list({taskId})). The plumbing just doesn't reach the cost logger.estimateTaskCosts() in MC is unfixable as-is β it regex-greps event JSON for t-NNN and charges a flat $0.001/event. Wildly inaccurate.Deliverable: projects/deepseek-api/feature-request-task-cost-tagging.md β concise upstream feature request proposing two additive changes (usage entry taskId field + openclaw.task.id OTel attribute). Backward compatible, low risk, unlocks audit-grade Finance numbers and cost-per-task SLOs.
Next: Maxime greenlights β file as GitHub issue against openclaw/openclaw.
Review
Subtasks