Docs / Plans and tasks /
TaskActivityReceipt
Post-completion receipt for a task: duration, tokens, cost, and outputs produced.
Preview
Activity receipt
- SchedulerAgentagent14:02:01
Task created and queued for execution.
- DeployAgentagent14:02:04
Picked up the task and started migration.
- DeployAgentagent14:03:18
Paused — awaiting human approval before production deploy.
Policy requires human sign-off on production deployments.
- joeyuser14:04:55
Approved production deployment.
- DeployAgentagent14:06:12
Migration applied and service restarted successfully.
Variants
With failure
Activity receipt
- SchedulerAgentagent02:00:00
Task created for nightly index rebuild.
- IndexAgentagent02:00:03
Started rebuilding search index.
- IndexAgentagent02:14:47
Index rebuild failed — disk quota exceeded.
Available disk space dropped below 500 MB threshold.
Hand-off
Activity receipt
- OrchestratorAgentagent09:15:00
Accepted task and routed to specialist.
- OrchestratorAgentagent09:15:02
Delegated to TestAgent for coverage analysis.
- TestAgentagent09:16:44
Coverage report generated — 87 % line coverage.
Props
| Prop | Type | Description |
|---|---|---|
| entries* | ActivityReceiptEntry[] | Ordered list of state-change events, oldest first. |
| title | string | Section heading rendered in caps above the log. Defaults to "Activity receipt". |
* required.
Usage
import { TaskActivityReceipt } from "@/components/tasks/task-activity-receipt";
<TaskActivityReceipt
entries={[
{ id: "1", change: "created", actor: "SchedulerAgent", actorKind: "agent", summary: "Task queued.", at: "14:02:01" },
{ id: "2", change: "completed", actor: "DeployAgent", actorKind: "agent", summary: "Migration applied.", at: "14:06:12" },
]}
/>